|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectnumRecipes.FeldmanCousins
public class FeldmanCousins
Implementation of the Feldman-Cousins method to calcylate the upper limit at a given C.L.
Physical Review D 57 3873 (1998) |
Field Summary | |
---|---|
protected static double |
bgSearchStep
|
protected static double |
confidenceLevel
confidence level of the flux interval |
protected static double |
epsilon
off set to the BG if BG=0 |
protected static double |
nBackgroundRelMax
|
protected static double |
nBackgroundRelMin
Relative Background uncertainties |
protected static double |
signalSearchRangeMax
Range of searching the signal interval range decided by the Ferlman-Cousins |
protected static double |
signalSearchRangeMin
Range of searching the signal interval range decided by the Ferlman-Cousins |
protected static double |
signalSearchStep
step size of searching the signal interval range decided by the Ferlman-Cousins |
protected static boolean |
treatBGuncertainties
|
Constructor Summary | |
---|---|
FeldmanCousins()
|
Method Summary | |
---|---|
static double |
getAverageUpperLimit(double nBackground)
Calculate average upper limit of signals for expected background of nBackground. |
static double |
getConfidenceLevel()
|
static double |
getLeastSignalForDiscovery(double nBackground,
double nSignificance)
Calculate the lower signal numbers that would be discovered by a given confidence level (default: 90%) with significance of nSignificance sigma. |
static double |
getLowerLimit(double nBackground,
long nObserved)
Calculate lower limit of number of signals for a given observed number, nObserved, in expectation of nBackground and return the result. |
static double |
getMaxRangeOfSignalIntervalCalculation()
|
static double |
getMinRangeOfSignalIntervalCalculation()
|
protected static double |
getPDFwithUncertainBG(double nSignal,
double nBackground,
long nObserved)
|
protected static double |
getSignalToMaximizeProbability(double nBackground,
long nObserved)
|
static double |
getStepSizeOfSignalIntervalCalculation()
|
static double |
getUpperLimit(double nBackground,
long nObserved)
Calculate upper limit of number of signals for a given observed number, nObserved, in expectation of nBackground and return the result. |
protected static boolean |
isNobservedWithinConfidenceBelt(double nSignal,
double nBackground,
long nObserved)
Tells whether the given number of observed events are within the confidence belt for the given signal and expected background. |
static void |
main(java.lang.String[] args)
The simple main method - display the 90% C.L. |
static void |
setConfidenceLevel(double cl)
|
static void |
setRangeOfSignalIntervalCalculation(double min,
double max,
double stepSize)
Set the range of signals in calculating the signal interval - min < signal < max |
static void |
setRelativeBackgroundUncertainty(double minusBGerr,
double plusBGerr)
Set the bacgkround uncertainty. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static double confidenceLevel
protected static double signalSearchRangeMin
protected static double signalSearchRangeMax
protected static double signalSearchStep
protected static double bgSearchStep
protected static double epsilon
protected static double nBackgroundRelMin
protected static double nBackgroundRelMax
protected static boolean treatBGuncertainties
Constructor Detail |
---|
public FeldmanCousins()
Method Detail |
---|
public static void setRangeOfSignalIntervalCalculation(double min, double max, double stepSize)
public static double getMaxRangeOfSignalIntervalCalculation()
public static double getMinRangeOfSignalIntervalCalculation()
public static double getStepSizeOfSignalIntervalCalculation()
public static void setConfidenceLevel(double cl)
public static double getConfidenceLevel()
public static void setRelativeBackgroundUncertainty(double minusBGerr, double plusBGerr)
double minusBGerr : (BGminimum - BGmean)/BGmean double plusBGerr : (BGmaximum - BGmean)/BGmean
protected static boolean isNobservedWithinConfidenceBelt(double nSignal, double nBackground, long nObserved)
protected static double getPDFwithUncertainBG(double nSignal, double nBackground, long nObserved)
protected static double getSignalToMaximizeProbability(double nBackground, long nObserved)
public static double getUpperLimit(double nBackground, long nObserved)
public static double getLowerLimit(double nBackground, long nObserved)
public static double getAverageUpperLimit(double nBackground)
public static double getLeastSignalForDiscovery(double nBackground, double nSignificance)
public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |