public class StatConfidence extends Object
After initializing this class, add data (addData()). Then run "run()" method. You can get probabilities using getProbabilyty method.
The user can iterate towards whatever limit type they choose, e.g., for a 90% upper limit they adjust the limit guess until the probability is shown as 0.10; for a 90% lower limit they would aim for 0.90.
Constructor and Description |
---|
StatConfidence(double sensitivity,
double sigma,
double limitguess,
int NMCevents)
Initialize the limit calculations
|
StatConfidence(double limitguess,
int NMCevents)
Initialize the limit calculations, assuming efficiency 1.
|
Modifier and Type | Method and Description |
---|---|
void |
addData(ExpData data)
Add experimental data
|
void |
getDataSize()
Get number of experiments
|
ArrayList<ExpData> |
getExpData()
Get experimental data
|
double |
getLimitGuess()
Get limit guess
|
double |
getNMC()
Get number of MC events
|
double |
getProbabilityCH()
get probability (Cousins+Highland) for the given limit.
|
double |
getProbabilityJ()
Probability (Jeffreys) for the given limit.
|
double |
getProbabilitySWG()
Get probability (BaBar SWG) for the given limit.
|
double |
getSensitivity()
Get sensitivity
|
double |
getSensitivityError()
Get error on sensitivity
|
boolean |
run(boolean isUpper)
Run limit calculations.
|
boolean |
runLower()
Run limit calculations for lower limit.
|
boolean |
runUpper()
Run limit calculations for upper limit.
|
void |
setLimitGuess(double limitguess)
Set new limit
|
void |
setNMC(double NMC)
Set number of MC events
|
void |
setSensitivity(double sensitivity)
Set new sensitivity
|
void |
setSensitivityError(double sigma)
Set error on sensitivity
|
public StatConfidence(double sensitivity, double sigma, double limitguess, int NMCevents)
sensitivit
- (or efficiency)sigma
- (uncertainty on efficiency)limitguess
- initial guess on limitNMCevents
- Number of Monte Carlo eventspublic StatConfidence(double limitguess, int NMCevents)
limitguess
- initial guess on limitNMCevents
- Number of Monte Carlo eventspublic void addData(ExpData data)
data
- exp datapublic void getDataSize()
public boolean runUpper()
public boolean runLower()
public boolean run(boolean isUpper)
isUpper
- set to true for the upper limit. Set to false for the lower limit.public double getProbabilityCH()
public double getProbabilitySWG()
public double getProbabilityJ()
public void setLimitGuess(double limitguess)
limitguess
- public void setNMC(double NMC)
NMC
- number of MC eventspublic void setSensitivity(double sensitivity)
sensitivity
- public void setSensitivityError(double sigma)
sigma
- public double getLimitGuess()
public double getNMC()
public double getSensitivity()
public double getSensitivityError()
Jas4pp 1.5 © Java Analysis Studio for Particle Physics