Class implementing the frequentist hypothesis testing method.
Macros:
Enumerations:
None.
Typedefs:
None.
Struct CapyFHT :
Struct CapyFHT's properties:
Confidence that an event matches the null hypothesis (in [0,1])
Confidence that an event doesn't match the alternate hypothesis (in [0,1])
Distribution of the null hypothesis
Distribution of the alternate hypothesis
Struct CapyFHT's methods:
Destructor
Check if an event matches the null hypothesis
Input argument(s):
evt: the event
Output and side effect(s):
Return true if the event matches, else false.
Functions:
Create a CapyFHT
Input argument(s):
statisticalPower: confidence that an event doesn't match the alternate hypothesis (in [0,1])
pValue: confidence that an event matches the null hypothesis (in [0,1])
nullHypo: distribution of the null hypothesis
altHyp: distribution of the alternate hypothesis
Output and side effect(s):
Return a CapyFHT
Allocate memory for a new CapyFHT and create it.
Input argument(s):
statisticalPower: confidence that an event doesn't match the alternate hypothesis (in [0,1])
pValue: confidence that an event matches the null hypothesis (in [0,1])
nullHypo: distribution of the null hypothesis
altHyp: distribution of the alternate hypothesis
Output and side effect(s):
Return a CapyFHT
Exception(s):
May raise CapyExc_MallocFailed.
Free the memory used by a CapyFHT* and reset '*that' to NULL
Input argument(s):
that: a pointer to the CapyFHT to free