Class DataFit

java.lang.Object
  extended by DataFit
Direct Known Subclasses:
LinearCoefficientFit

public abstract class DataFit
extends java.lang.Object


Constructor Summary
DataFit(int n)
           
 
Method Summary
 int countFitted()
           
abstract  void fit(double[] x, double[] y, double[] sigma)
           
 double getChiSquared(double[] x, double[] y, double[] sigma)
           
 void reset()
           
 int size()
           
 double uncertaintyAt(double x)
           
abstract  double valueAt(double x)
           
abstract  double varianceAt(double x)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataFit

public DataFit(int n)
Method Detail

size

public int size()

reset

public void reset()

countFitted

public int countFitted()

valueAt

public abstract double valueAt(double x)

varianceAt

public abstract double varianceAt(double x)

uncertaintyAt

public double uncertaintyAt(double x)

fit

public abstract void fit(double[] x,
                         double[] y,
                         double[] sigma)
                  throws java.lang.IllegalStateException
Throws:
java.lang.IllegalStateException

getChiSquared

public double getChiSquared(double[] x,
                            double[] y,
                            double[] sigma)