Class LinearRegression


  • public class LinearRegression
    extends Object
    Performs a linear regression on random variables implementing RandomVariable.
    Author:
    Christian Fries
    • Constructor Detail

      • LinearRegression

        public LinearRegression​(RandomVariable[] basisFunctions)
        Create the linear regression with a set of basis functions.
        Parameters:
        basisFunctions - A vector of (independent) random variables to be used as basis functions.
    • Method Detail

      • getRegressionCoefficients

        public double[] getRegressionCoefficients​(RandomVariable value)
        Get the vector of regression coefficients.
        Parameters:
        value - The random variable to regress.
        Returns:
        The vector of regression coefficients.