|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsbrt.ext.R.stat.RCorrelator<V>
V
- the variable type.public abstract class RCorrelator<V>
This class computes correlation statistics using R
.
Nested Class Summary | |
---|---|
static class |
RCorrelator.Result
This class is used to store the results of computing a correlation using R. |
Constructor Summary | |
---|---|
RCorrelator()
|
Method Summary | |
---|---|
RCorrelator.Result |
corr(java.util.Collection<java.lang.Double> x,
java.util.Collection<java.lang.Double> y)
Computes and returns the correlation results for the provided values. |
RCorrelator.Result |
corr(java.lang.Double[] x,
java.lang.Double[] y)
Computes and returns the correlation results for the provided values. |
RCorrelator.Result |
corr(java.util.Map<? extends V,java.lang.Double> xValues,
java.util.Map<? extends V,java.lang.Double> yValues)
Computes and returns the correlation statistic of the provided x and y values. |
protected abstract java.lang.String |
getCorrName()
Returns the name of the correlation statistic computed by this R
correlator. |
static void |
main(java.lang.String[] args)
Used for testing purposes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RCorrelator()
Method Detail |
---|
public static void main(java.lang.String[] args)
args
- ignored.protected abstract java.lang.String getCorrName()
R
correlator. This name should be understood by the R
function
cor.test()
; that is, kendall
, spearman
, or
pearson
for example.
R
correlator.public final RCorrelator.Result corr(java.util.Map<? extends V,java.lang.Double> xValues, java.util.Map<? extends V,java.lang.Double> yValues)
corr
in interface Correlator<V,RCorrelator.Result>
xValues
- variables mapped to their values.yValues
- variables mapped to their values.
public final RCorrelator.Result corr(java.lang.Double[] x, java.lang.Double[] y)
corr
in interface Correlator<V,RCorrelator.Result>
x
- an ordered array of values.y
- an ordered array of values.
public final RCorrelator.Result corr(java.util.Collection<java.lang.Double> x, java.util.Collection<java.lang.Double> y)
corr
in interface Correlator<V,RCorrelator.Result>
x
- an ordered collection of values.y
- an ordered collection of values.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |