Documentation of 'jsat.math.DescriptiveStatistics' Java class
DescriptiveStatistics
jsat.math

Class DescriptiveStatistics



  • public class DescriptiveStatistics
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static double sampleCorCoeff(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.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DescriptiveStatistics

        public DescriptiveStatistics()
    • 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 set
        xData - 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 set
        yData - the y values of the data set
        Returns:
        several summary statistics of the 2 variables

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.