jasext.hist.function
Class StraightLineFunction

java.lang.Object
  |
  +--java.util.Observable
        |
        +--jas.hist.Basic1DFunction
              |
              +--jas.hist.Fittable1DFunction
                    |
                    +--jasext.hist.function.StraightLineFunction
All Implemented Interfaces:
DataSource, ExtendedStatistics, FunctionData, HasHandles, HasStatistics, java.io.Serializable, Statistics

public class StraightLineFunction
extends Fittable1DFunction
implements HasHandles

See Also:
Serialized Form

Fields inherited from interface jas.hist.DataSource
DATE, DELTATIME, DOUBLE, INTEGER, STRING
 
Constructor Summary
StraightLineFunction(double xmin, double xmax, double ymin, double ymax)
           
 
Method Summary
 Handle[] getHandles(double xLow, double xHigh, double yLow, double yHigh)
           
 java.lang.String[] getParameterNames()
           
 double[] getParameterValues()
           
 java.lang.String getTitle()
           
 void setFit(Fitter fit, double[] a)
           
 void setParameter(int index, double value)
           
 double valueAt(double x)
           
 double valueAt(double x, double[] a)
           
 
Methods inherited from class jas.hist.Fittable1DFunction
clearFit, clearFitParams, destroy, getDerivatives, getExtendedStatistic, getFit, getIncludeParametersInFit, getStatistic, getStatisticNames, initIncludeParametersInFit, setFit, setIncludeParameterInFit
 
Methods inherited from class jas.hist.Basic1DFunction
getStatistics, setBatch, setChanged, setChanged
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StraightLineFunction

public StraightLineFunction(double xmin,
                            double xmax,
                            double ymin,
                            double ymax)
Method Detail

valueAt

public double valueAt(double x)
Overrides:
valueAt in class Basic1DFunction

valueAt

public double valueAt(double x,
                      double[] a)
Overrides:
valueAt in class Fittable1DFunction

getParameterNames

public java.lang.String[] getParameterNames()
Overrides:
getParameterNames in class Basic1DFunction

getParameterValues

public double[] getParameterValues()
Overrides:
getParameterValues in class Basic1DFunction

setParameter

public void setParameter(int index,
                         double value)
Overrides:
setParameter in class Basic1DFunction

setFit

public void setFit(Fitter fit,
                   double[] a)
Overrides:
setFit in class Fittable1DFunction

getTitle

public java.lang.String getTitle()
Overrides:
getTitle in class Basic1DFunction

getHandles

public Handle[] getHandles(double xLow,
                           double xHigh,
                           double yLow,
                           double yHigh)
Specified by:
getHandles in interface HasHandles