numRecipes
public class FeldmanCousins extends java.lang.Object
Physical Review D 57 3873 (1998) |
Modifier and Type | Field and Description |
---|---|
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
|
static boolean |
inclusive |
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 and Description |
---|
FeldmanCousins() |
Modifier and Type | Method and Description |
---|---|
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 double |
probabilityOfNobserved(double nSignal,
double nBackground,
long nObserved)
Return the confidence level that the given number of observed events
for the given signal and expected background.
|
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.
|
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
public static boolean inclusive
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)
public static double probabilityOfNobserved(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