Sleipnir
|
Calculate the hypergeometric p-value of overlap between two boolean vectors (centering and weights ignored). More...
#include <measure.h>
Public Member Functions | |
double | Measure (const float *adX, size_t iN, const float *adY, size_t iM, EMap eMap=EMapNone, const float *adWX=NULL, const float *adWY=NULL) const |
Calculate the measure between two given vectors with optional element weights. | |
const char * | GetName () const |
Return the human-readable unique identifier of the measure type. | |
bool | IsRank () const |
Return true if the measure requires rank-based integer inputs. | |
IMeasure * | Clone () const |
Create a copy of the current measure object. |
Calculate the hypergeometric p-value of overlap between two boolean vectors (centering and weights ignored).
Returns the hypergeometric p-value of overlap given two boolean vectors, counting the total number of nonzero entries, the number of nonzero entries in each vector, and the number of positions in which both vectors are nonzero.
IMeasure* Sleipnir::CMeasureHypergeometric::Clone | ( | ) | const [inline, virtual] |
Create a copy of the current measure object.
Implements Sleipnir::IMeasure.
const char* Sleipnir::CMeasureHypergeometric::GetName | ( | ) | const [inline, virtual] |
Return the human-readable unique identifier of the measure type.
Implements Sleipnir::IMeasure.
bool Sleipnir::CMeasureHypergeometric::IsRank | ( | ) | const [inline, virtual] |
Return true if the measure requires rank-based integer inputs.
Implements Sleipnir::IMeasure.
double Sleipnir::CMeasureHypergeometric::Measure | ( | const float * | adX, |
size_t | iN, | ||
const float * | adY, | ||
size_t | iM, | ||
EMap | eMap = EMapNone , |
||
const float * | adWX = NULL , |
||
const float * | adWY = NULL |
||
) | const [virtual] |
Calculate the measure between two given vectors with optional element weights.
adX | First array of values. |
iN | Length of first array. |
adY | Second array of values. |
iM | Length of second array. |
eMap | Way in which returned value should be centered (implementation-specific). |
adWX | If non-null, weights of elements in the first array. |
adWY | If non-null, weights of elements in the second array. |
Implements Sleipnir::IMeasure.
Definition at line 795 of file measure.cpp.
References Sleipnir::CMeta::GetNaN(), Sleipnir::CStatistics::HypergeometricCDF(), and Sleipnir::CMeta::IsNaN().