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

Class SimpleLinearRegression



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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static double[] regres(Vec xData, Vec yData)
      Performs a Simple Linear Regression on the data set, calculating the best fit a and b such that y = a + b * x

      • Methods inherited from class java.lang.Object

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

      • SimpleLinearRegression

        public SimpleLinearRegression()
    • Method Detail

      • regres

        public static double[] regres(Vec xData,
                                      Vec yData)
        Performs a Simple Linear Regression on the data set, calculating the best fit a and b such that y = a + b * x

        Parameters:
        yData - the Y data set (to be predicted)
        xData - the X data set (the predictor)
        Returns:
        an array containing the a and b, such that index 0 contains a and index 1 contains b

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.