jsat.math
Class DescriptiveStatistics
- java.lang.Object
-
- jsat.math.DescriptiveStatistics
-
public class DescriptiveStatistics extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor and Description DescriptiveStatistics()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static doublesampleCorCoeff(Vec xData, Vec yData)Computes the sample correlation coefficient for two data sets X and Y.static double[]summaryStats(Vec xData, Vec yData)Computes several summary statistics from the two data sets.
-
-
-
Method Detail
-
sampleCorCoeff
public static double sampleCorCoeff(Vec xData, Vec yData)
Computes the sample correlation coefficient for two data sets X and Y. The lengths of X and Y must be the same, and each element in X should correspond to the element in Y.- Parameters:
yData- the Y data setxData- the X data set- Returns:
- the sample correlation coefficient
-
summaryStats
public static double[] summaryStats(Vec xData, Vec yData)
Computes several summary statistics from the two data sets. These are:
Index 0: Sx
Index 1: Sy
Index 2: Sxx
Index 3: Syy
Index 4: Sxy- Parameters:
xData- the x values of the data setyData- the y values of the data set- Returns:
- several summary statistics of the 2 variables
-
-
DataMelt 3.0 © DataMelt by jWork.ORG