Package jdistlib.disttest.online
Class Saffron
java.lang.Object
jdistlib.disttest.online.Saffron
- All Implemented Interfaces:
OnlineFdrController
Stateful constant-candidate-threshold SAFFRON online-FDR controller.
A p-value is a candidate when it is at most lambda. The supplied
finite gamma sequence is padded with zeros. FDR control requires independent
null p-values; under conditional super-uniformity the procedure controls
modified FDR.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the number of candidate p-values seen so far.doubleintReturns the number of rejections so far.longReturns the number of p-values processed.voidreset()Restores the controller to its newly constructed state.test(double pValue) Tests the next p-value and advances the controller exactly once.
-
Constructor Details
-
Saffron
public Saffron(double alpha, double initialWealth, double lambda, double[] gamma)
-
-
Method Details
-
test
Description copied from interface:OnlineFdrControllerTests the next p-value and advances the controller exactly once.- Specified by:
testin interfaceOnlineFdrController
-
getCandidateCount
public long getCandidateCount()Returns the number of candidate p-values seen so far. -
getCandidateThreshold
public double getCandidateThreshold() -
getTestCount
public long getTestCount()Description copied from interface:OnlineFdrControllerReturns the number of p-values processed.- Specified by:
getTestCountin interfaceOnlineFdrController
-
getRejectionCount
public int getRejectionCount()Description copied from interface:OnlineFdrControllerReturns the number of rejections so far.- Specified by:
getRejectionCountin interfaceOnlineFdrController
-
reset
public void reset()Description copied from interface:OnlineFdrControllerRestores the controller to its newly constructed state.- Specified by:
resetin interfaceOnlineFdrController
-