|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsbrt.kernel.math.stat.comp.KendallTau<V>
V
- the variable type.public abstract class KendallTau<V>
This abstract class is a skeleton implementation of a Kendall's tau correlation statistic computer. It is implemented using algorithms from the book Rank Correlation Methods, 5th Edition by Kendall & Gibbons.
Constructor Summary | |
---|---|
KendallTau()
|
Method Summary | |
---|---|
TauResult |
corr(java.util.Collection<java.lang.Double> xValues,
java.util.Collection<java.lang.Double> yValues)
Computes and returns the correlation results for the provided values. |
TauResult |
corr(double[] xValues,
double[] yValues)
Computes and returns the correlation results for the provided values. |
TauResult |
corr(java.lang.Double[] xValues,
java.lang.Double[] yValues)
Computes and returns the correlation results for the provided values. |
TauResult |
corr(java.util.Map<? extends V,java.lang.Double> xValues,
java.util.Map<? extends V,java.lang.Double> yValues)
Computes and returns the correlation results for the provided values. |
double |
getApproxZ(java.util.Collection<java.lang.Double> xValues,
java.util.Collection<java.lang.Double> yValues)
Computes and returns a Z approximation for the provided values. |
double |
getApproxZ(double[] xValues,
double[] yValues)
Computes and returns a Z approximation for the provided values. |
double |
getApproxZ(java.util.Map<? extends V,java.lang.Double> xValues,
java.util.Map<? extends V,java.lang.Double> yValues)
Computes and returns a Z approximation for the provided values. |
int |
getS(java.util.Collection<java.lang.Double> xValues,
java.util.Collection<java.lang.Double> yValues)
Computes and returns the S value of the provided values. |
int |
getS(double[] xValues,
double[] yValues)
Computes and returns the S value of the provided values. |
int |
getS(java.util.Map<? extends V,java.lang.Double> xValues,
java.util.Map<? extends V,java.lang.Double> yValues)
Computes and returns the S value of the provided values. |
double |
getTau(java.util.Collection<java.lang.Double> xValues,
java.util.Collection<java.lang.Double> yValues)
Computes and returns the correlation statistic for the provided values. |
abstract double |
getTau(double[] xValues,
double[] yValues)
Computes and returns the correlation statistic for the provided values. |
double |
getTau(java.util.Map<? extends V,java.lang.Double> xValues,
java.util.Map<? extends V,java.lang.Double> yValues)
Computes and returns the correlation statistic for the provided values. |
double |
getTieScore(java.util.Collection<java.lang.Double> values)
Computes and returns the tie score of the provided values. |
double |
getTieScore(double[] values)
Computes and returns the tie score of the provided values. |
double |
getTieScore(java.util.Map<? extends V,java.lang.Double> values)
Computes and returns the tie score of the provided values. |
double |
getVarS(java.util.Collection<java.lang.Double> xValues,
java.util.Collection<java.lang.Double> yValues)
Computes and returns the variance of S for the provided values. |
double |
getVarS(double[] xValues,
double[] yValues)
Computes and returns the variance of S for the provided values. |
double |
getVarS(java.util.Map<? extends V,java.lang.Double> xValues,
java.util.Map<? extends V,java.lang.Double> yValues)
Computes and returns the variance of S for the provided values. |
static void |
main(java.lang.String[] args)
Tests the Kendall Tau A and B computers. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KendallTau()
Method Detail |
---|
public abstract double getTau(double[] xValues, double[] yValues)
xValues
- an ordered array of values.yValues
- an ordered array of values.
public double getTau(java.util.Map<? extends V,java.lang.Double> xValues, java.util.Map<? extends V,java.lang.Double> yValues)
xValues
- variables mapped to their value.yValues
- variables mapped to their value.
public double getTau(java.util.Collection<java.lang.Double> xValues, java.util.Collection<java.lang.Double> yValues)
xValues
- an ordered collection of values.yValues
- an ordered collection of values.
public TauResult corr(java.util.Map<? extends V,java.lang.Double> xValues, java.util.Map<? extends V,java.lang.Double> yValues)
corr
in interface Correlator<V,TauResult>
xValues
- variables mapped to their value.yValues
- variables mapped to their value.
public TauResult corr(java.util.Collection<java.lang.Double> xValues, java.util.Collection<java.lang.Double> yValues)
corr
in interface Correlator<V,TauResult>
xValues
- an ordered collection of values.yValues
- an ordered collection of values.
public TauResult corr(java.lang.Double[] xValues, java.lang.Double[] yValues)
corr
in interface Correlator<V,TauResult>
xValues
- an ordered array of values.yValues
- an ordered array of values.
public TauResult corr(double[] xValues, double[] yValues)
xValues
- an ordered array of values.yValues
- an ordered array of values.
public int getS(java.util.Map<? extends V,java.lang.Double> xValues, java.util.Map<? extends V,java.lang.Double> yValues)
xValues
- variables mapped to their value.yValues
- variables mapped to their value.
public int getS(java.util.Collection<java.lang.Double> xValues, java.util.Collection<java.lang.Double> yValues)
xValues
- an ordered collection of values.yValues
- an ordered collection of values.
public int getS(double[] xValues, double[] yValues)
xValues
- an ordered array of values.yValues
- an ordered array of values.
public double getTieScore(java.util.Map<? extends V,java.lang.Double> values)
values
- variables mapped to their value.
public double getTieScore(java.util.Collection<java.lang.Double> values)
values
- a collection of values.
public double getTieScore(double[] values)
values
- an array of values.
public double getApproxZ(java.util.Map<? extends V,java.lang.Double> xValues, java.util.Map<? extends V,java.lang.Double> yValues)
xValues
- variables mapped to their value.yValues
- variables mapped to their value.
public double getApproxZ(java.util.Collection<java.lang.Double> xValues, java.util.Collection<java.lang.Double> yValues)
xValues
- an ordered collection of values.yValues
- an ordered collection of values.
public double getApproxZ(double[] xValues, double[] yValues)
xValues
- an ordered array of values.yValues
- an ordered array of values.
public double getVarS(java.util.Map<? extends V,java.lang.Double> xValues, java.util.Map<? extends V,java.lang.Double> yValues)
xValues
- variables mapped to their value.yValues
- variables mapped to their value.
public double getVarS(java.util.Collection<java.lang.Double> xValues, java.util.Collection<java.lang.Double> yValues)
xValues
- an ordered collection of values.yValues
- an ordered collection of values.
public double getVarS(double[] xValues, double[] yValues)
xValues
- an ordered array of values.yValues
- an ordered array of values.
public static void main(java.lang.String[] args)
args
- not required.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |