|
Sleipnir
|
Calculates Spearman's rank correlation between two vectors (centering as per EMap, weights ignored). More...
#include <measure.h>
Public Member Functions | |
| CMeasureSpearman (bool fTransformed) | |
| Construct a new Spearman correlation measure with the indicated ranking behavior. | |
| 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 Spearman's rank correlation between two vectors (centering as per EMap, weights ignored).
| Sleipnir::CMeasureSpearman::CMeasureSpearman | ( | bool | fTransformed | ) | [inline] |
Construct a new Spearman correlation measure with the indicated ranking behavior.
| fTransformed | If true, all inputs are assumed to be pre-rank transformed; otherwise, rank-transforming is performed for each Measure call. |
Definition at line 516 of file measure.h.
Referenced by Clone().
| IMeasure* Sleipnir::CMeasureSpearman::Clone | ( | ) | const [inline, virtual] |
Create a copy of the current measure object.
Implements Sleipnir::IMeasure.
Definition at line 529 of file measure.h.
References CMeasureSpearman().
| const char* Sleipnir::CMeasureSpearman::GetName | ( | ) | const [inline, virtual] |
Return the human-readable unique identifier of the measure type.
Implements Sleipnir::IMeasure.
| bool Sleipnir::CMeasureSpearman::IsRank | ( | ) | const [inline, virtual] |
Return true if the measure requires rank-based integer inputs.
Implements Sleipnir::IMeasure.
| double Sleipnir::CMeasureSpearman::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 713 of file measure.cpp.
References Sleipnir::IMeasure::EMapAbs, Sleipnir::IMeasure::EMapCenter, and Sleipnir::CMeta::GetNaN().
1.7.6.1