Documentation of 'Catalano.Statistics.Regression.PolynomialRegression' Java class
PolynomialRegression
Catalano.Statistics.Regression

Class PolynomialRegression

    • Constructor Summary

      Constructors 
      Constructor and Description
      PolynomialRegression(double[] x, double[] y)
      Initializes a new instance of the PolynomialRegression class.
      PolynomialRegression(double[] x, double[] y, int degree)
      Initializes a new instance of the PolynomialRegression class.
    • Constructor Detail

      • PolynomialRegression

        public PolynomialRegression(double[] x,
                                    double[] y)
        Initializes a new instance of the PolynomialRegression class.
        Parameters:
        x - Data.
        y - Data.
      • PolynomialRegression

        public PolynomialRegression(double[] x,
                                    double[] y,
                                    int degree)
        Initializes a new instance of the PolynomialRegression class.
        Parameters:
        x - Data.
        y - Data.
        degree - Degree.
    • Method Detail

      • getDegree

        public int getDegree()
        Get degree.
        Returns:
        Degree.
      • setDegree

        public void setDegree(int degree)
        Set degree.
        Parameters:
        degree - Degree.
      • Regression

        public double Regression(double x)
        Description copied from interface: ISimpleRegression
        Compute regression of specific value.
        Specified by:
        Regression in interface ISimpleRegression
        Parameters:
        x - Value.
        Returns:
        Regression.
      • Regression

        public double[] Regression(double[] x)
        Description copied from interface: ISimpleRegression
        Compute regression in the vector.
        Specified by:
        Regression in interface ISimpleRegression
        Parameters:
        x - Vector.
        Returns:
        Regression.
      • toString

        public java.lang.String toString()
        Description copied from interface: ISimpleRegression
        Show the regression's equation.
        Specified by:
        toString in interface ISimpleRegression
        Overrides:
        toString in class java.lang.Object

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.