|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjhpro.stat.limit.StatConfidence
public class StatConfidence
This is a class to give confidence intervals on various measurements calculated from the number of events observed, the acceptance factor, the background estimate and the associated errors. Results from different experiments (or different channels from the same experiment) can be combined. A complete description is given Computer Physics Communications 149 (2002) 97–102 by Roger Barlow.
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 Summary | |
---|---|
StatConfidence(double sensitivity,
double sigma,
double limitguess,
int NMCevents)
Initialize the limit calculations |
Method Summary | |
---|---|
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. |
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 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StatConfidence(double sensitivity, double sigma, double limitguess, int NMCevents)
sensitivity
- sigma
- limitguess
- NMCevents
- Method Detail |
---|
public void addData(ExpData data)
data
- exp datapublic void getDataSize()
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 ArrayList<ExpData> getExpData()
public double getSensitivity()
public double getSensitivityError()
|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |