numRecipes
public class PoissonBinnedLikelihoodRatioFactory 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 Description |
|---|---|
protected PoissonBinnedLikelihoodCalculator |
calH0 |
protected PoissonBinnedLikelihoodCalculator |
calH1 |
protected double |
maxLogLikelihoodRatio
maximized likelihood ratio log(L/L0)
|
protected double |
poissonLogLikelihoodH0
log likelohood for the null hypothesis
|
protected double |
poissonLogLikelihoodH1
log likelohood for the alternative hypothesis
|
protected double |
signalFactorForMaximalLlhH1
the scale factor to maximize likelihood for the alternative hypothesis
|
| Constructor and Description |
|---|
PoissonBinnedLikelihoodRatioFactory(PoissonBinnedLikelihoodCalculator calNull,
PoissonBinnedLikelihoodCalculator calAlter)
The default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
calculateMaxLogLikelihoodRatio(double scaleFactor)
calculate the maximized log likelihood ratio log(L/L0).
|
double |
getMaxLogLikelihoodRatio(double scaleFactor,
boolean runReplicaBGexperiment)
return the maximized log likelihood ratio log(L/L0).
|
double |
getPoissonLogLikelihoodH0(double scaleFactor)
return the binned Poisson likelihood for the null (background-only) hypothesis
|
double |
getPoissonLogLikelihoodH1(double scaleFactor)
return the binned Poisson likelihood for the alternative (background + signal) hypothesis
|
protected PoissonBinnedLikelihoodCalculator calH0
protected PoissonBinnedLikelihoodCalculator calH1
protected double poissonLogLikelihoodH0
protected double poissonLogLikelihoodH1
protected double maxLogLikelihoodRatio
protected double signalFactorForMaximalLlhH1
public PoissonBinnedLikelihoodRatioFactory(PoissonBinnedLikelihoodCalculator calNull, PoissonBinnedLikelihoodCalculator calAlter)
public void calculateMaxLogLikelihoodRatio(double scaleFactor)
public double getPoissonLogLikelihoodH0(double scaleFactor)
double scaleFactor: scaleFactor whici is multiplied to mu_bg_i; if set to 1.0, no fudge factor is introduced.
public double getPoissonLogLikelihoodH1(double scaleFactor)
double scaleFactor: scaleFactor whici is multiplied to mu_bg_i; if set to 1.0, no fudge factor is introduced.
public double getMaxLogLikelihoodRatio(double scaleFactor,
boolean runReplicaBGexperiment)
boolean runReplicaBGexperiment: true - run Replica experiment with null hypotheis
double scaleFactor: scaleFactor which is multiplied to mu_bg_i; if set to 1.0, no fudge factor is introduced.