public class SpearmansRankCorrelation_old extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_TIED_RANKS_BEFORE_CORRELATION |
static boolean |
DEFAULT_SORT_DESCENDING |
Constructor and Description |
---|
SpearmansRankCorrelation_old() |
SpearmansRankCorrelation_old(boolean sortDescending) |
SpearmansRankCorrelation_old(int maxTiedRanksBeforeCorrection,
boolean sortDescending) |
Modifier and Type | Method and Description |
---|---|
void |
addXValue(String id,
double value) |
void |
addYValue(String id,
double value) |
double |
calculate() |
void |
clear() |
static double |
computeCorrelation(List<Double> list1,
List<Double> list2)
Computes the correlation between two datasets.
|
public static final int DEFAULT_MAX_TIED_RANKS_BEFORE_CORRELATION
public static final boolean DEFAULT_SORT_DESCENDING
public SpearmansRankCorrelation_old(int maxTiedRanksBeforeCorrection, boolean sortDescending)
public SpearmansRankCorrelation_old(boolean sortDescending)
public SpearmansRankCorrelation_old()
public static double computeCorrelation(List<Double> list1, List<Double> list2)
list1
- The first dataset as a list.list2
- The second dataset as a list.public void addXValue(String id, double value)
public void addYValue(String id, double value)
public void clear()
public double calculate()
Copyright © 2011–2015 Ubiquitous Knowledge Processing (UKP) Lab. All rights reserved.