es.unex.sextante.libMath.regression
Class Regression

java.lang.Object
  extended by es.unex.sextante.libMath.regression.Regression

public class Regression
extends java.lang.Object

Simple regression class

Author:
volaya

Field Summary
static int REGRESSION_Best_Fit
           
static int REGRESSION_Exp
           
static int REGRESSION_Linear
           
static int REGRESSION_Log
           
static int REGRESSION_Pow
           
static int REGRESSION_Rez_X
           
static int REGRESSION_Rez_Y
           
 
Constructor Summary
Regression()
           
 
Method Summary
 void addValue(double dX, double dY)
           
 boolean calculate()
           
 boolean calculate(double[] x, double[] y)
           
 boolean calculate(int iRegressionType)
           
 double getCoeff()
           
 double getConstant()
           
 java.lang.String getExpression()
           
 double getR()
           
 double getR2()
           
 void getRestrictedSample(double[] x, double[] y, int nPoints)
           
 double getX(double y)
           
 double getXMax()
           
 double getXMin()
           
 double getXVar()
           
 double getY(double x)
           
 double getYMax()
           
 double getYMin()
           
 double getYVar()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REGRESSION_Best_Fit

public static final int REGRESSION_Best_Fit
See Also:
Constant Field Values

REGRESSION_Linear

public static final int REGRESSION_Linear
See Also:
Constant Field Values

REGRESSION_Rez_X

public static final int REGRESSION_Rez_X
See Also:
Constant Field Values

REGRESSION_Rez_Y

public static final int REGRESSION_Rez_Y
See Also:
Constant Field Values

REGRESSION_Pow

public static final int REGRESSION_Pow
See Also:
Constant Field Values

REGRESSION_Exp

public static final int REGRESSION_Exp
See Also:
Constant Field Values

REGRESSION_Log

public static final int REGRESSION_Log
See Also:
Constant Field Values
Constructor Detail

Regression

public Regression()
Method Detail

addValue

public void addValue(double dX,
                     double dY)

calculate

public boolean calculate()

calculate

public boolean calculate(double[] x,
                         double[] y)

calculate

public boolean calculate(int iRegressionType)

getCoeff

public double getCoeff()

getConstant

public double getConstant()

getExpression

public java.lang.String getExpression()

getR

public double getR()

getR2

public double getR2()

getRestrictedSample

public void getRestrictedSample(double[] x,
                                double[] y,
                                int nPoints)

getX

public double getX(double y)

getXMax

public double getXMax()

getXMin

public double getXMin()

getXVar

public double getXVar()

getY

public double getY(double x)

getYMax

public double getYMax()

getYMin

public double getYMin()

getYVar

public double getYVar()