gov.sns.tools.fit
Class PolyLeastsquares

java.lang.Object
  |
  +--gov.sns.tools.fit.PolyLeastsquares

public class PolyLeastsquares
extends java.lang.Object


Constructor Summary
PolyLeastsquares(double[] dX, double[] dY, int k)
          constructor
 
Method Summary
 java.lang.String Correlation()
          Find the correlation coefficient for the fit
 java.lang.String Equation()
          Return the characteristic equation as a String
 double getValue(double dX)
          Calculate the predicted y value for an inputed x
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolyLeastsquares

public PolyLeastsquares(double[] dX,
                        double[] dY,
                        int k)
                 throws java.lang.Exception
constructor

Method Detail

getValue

public double getValue(double dX)
Calculate the predicted y value for an inputed x


Correlation

public java.lang.String Correlation()
Find the correlation coefficient for the fit


Equation

public java.lang.String Equation()
Return the characteristic equation as a String