numRecipes
public class PoissonBinnedLikelihoodRatioTest extends java.lang.Object
The null hypothesis : bg only
The alternative hypothesis : bg + lambda * signal
(lambda>=0)
Written originally by S. Yoshida for the IceCube EHE analysis.
2013/6/24| Modifier and Type | Field and 説明 |
|---|---|
protected PoissonBinnedLikelihoodRatioFactory |
llhFactory
PoissonBinnedLikelihoodRatioFactory object
|
| Constructor and 説明 |
|---|
PoissonBinnedLikelihoodRatioTest(PoissonBinnedLikelihoodCalculator calNull,
PoissonBinnedLikelihoodCalculator calAlter)
The default constructor.
|
| Modifier and Type | Method and 説明 |
|---|---|
java.util.ListIterator |
getListIterator() |
double |
getMaxLogLikelihoodRatio(double scaleFactor,
boolean runReplicaBGexperiment)
return the maximized log likelihood ratio log(L/L0).
|
double |
getPvalue(double scaleFactor,
double precision,
double observed_llhratio)
calculate the p-value for a given log-likelihood ratio (llh) value.
|
static void |
main(java.lang.String[] args)
A simple main method
|
void |
makeCollectionOfLogLikelihoodRatio(double scaleFactor,
int runTimes)
make a list collection of the log-likelihood ratio obtained by running the replica experiment
by runTimes under the null (background-only) hypothesis.
|
void |
makeCollectionOfLogLikelihoodRatioAlternative(double scaleFactor,
int runTimes)
make a list collection of the log-likelihood ratio obtained by running the replica experiment
by runTimes under the algernative (signal) hypothesis.
|
protected PoissonBinnedLikelihoodRatioFactory llhFactory
public PoissonBinnedLikelihoodRatioTest(PoissonBinnedLikelihoodCalculator calNull, PoissonBinnedLikelihoodCalculator calAlter)
public double getMaxLogLikelihoodRatio(double scaleFactor,
boolean runReplicaBGexperiment)
double scaleFactor: scaleFactor which is multiplied to mu_bg_i; if set to 1.0, no fudge factor is introduced.
boolean runReplicaBGexperiment: true - run Replica experiment with null hypotheis
This method calls the same function of the PoissonBinnedLikelihoodRatioFactory class.public void makeCollectionOfLogLikelihoodRatio(double scaleFactor,
int runTimes)
public void makeCollectionOfLogLikelihoodRatioAlternative(double scaleFactor,
int runTimes)
public java.util.ListIterator getListIterator()
public double getPvalue(double scaleFactor,
double precision,
double observed_llhratio)
public static void main(java.lang.String[] args)
throws java.io.IOException
java.io.IOException