Sleipnir
|
Calculates the Kendall's Tau correlation between two vectors (centering as per EMap, weights used in pairwise products). 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. |
Calculates the Kendall's Tau correlation between two vectors (centering as per EMap, weights used in pairwise products).
IMeasure* Sleipnir::CMeasureKendallsTau::Clone | ( | ) | const [inline, virtual] |
Create a copy of the current measure object.
Implements Sleipnir::IMeasure.
const char* Sleipnir::CMeasureKendallsTau::GetName | ( | ) | const [inline, virtual] |
Return the human-readable unique identifier of the measure type.
Implements Sleipnir::IMeasure.
bool Sleipnir::CMeasureKendallsTau::IsRank | ( | ) | const [inline, virtual] |
Return true if the measure requires rank-based integer inputs.
Implements Sleipnir::IMeasure.
double Sleipnir::CMeasureKendallsTau::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 497 of file measure.cpp.
References Sleipnir::IMeasure::EMapAbs, Sleipnir::IMeasure::EMapCenter, and Sleipnir::CMeta::GetNaN().