jasext.hist.function
Class CubicFunction

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

public class CubicFunction
extends jasext.hist.function.AbstractPolynomialFunction

See Also:
Serialized Form

Field Summary
protected  int order
           
protected  double[] p
           
 
Fields inherited from interface jas.hist.DataSource
DATE, DELTATIME, DOUBLE, INTEGER, STRING
 
Constructor Summary
CubicFunction(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[] value)
           
 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
 

Field Detail

p

protected double[] p

order

protected int order
Constructor Detail

CubicFunction

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

getTitle

public java.lang.String getTitle()
Overrides:
getTitle in class jasext.hist.function.AbstractPolynomialFunction

valueAt

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

valueAt

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

getParameterNames

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

getParameterValues

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

setParameter

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

setFit

public final void setFit(Fitter fit,
                         double[] value)
                  throws InvalidFunctionParameter
Overrides:
setFit in class Fittable1DFunction

getHandles

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