public class PearsonCorrelation extends Object
Constructor and Description |
---|
PearsonCorrelation() |
Modifier and Type | Method and Description |
---|---|
static double |
computeCorrelation(double[] list1,
double[] list2)
Computes the correlation between two datasets.
|
static double |
computeCorrelation(List<Double> list1,
List<Double> list2)
Computes the correlation between two datasets.
|
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 static double computeCorrelation(double[] list1, double[] list2)
list1
- The first dataset as a double array.list2
- The second dataset as a double array.Copyright © 2011–2015 Ubiquitous Knowledge Processing (UKP) Lab. All rights reserved.