jasext.hist.function
Class ExponentialFunction
java.lang.Object
|
+--java.util.Observable
|
+--jas.hist.Basic1DFunction
|
+--jas.hist.Fittable1DFunction
|
+--jasext.hist.function.ExponentialFunction
- All Implemented Interfaces:
- DataSource, ExtendedStatistics, FunctionData, HasHandles, HasStatistics, java.io.Serializable, Statistics
- public class ExponentialFunction
- extends Fittable1DFunction
- implements HasHandles
Fittable Exponential function with handles:
y(x) = A exp(-(x-x0)/E)
A = amplitude, corresponding to function value for x=x0
x0 = origin, corresponding to y(xo) = A
E = reciprocal exponent (decay constant)
The initial function will be a negative exponential based
on the current maximum and minimum axis values (not the data).
A positive exponential can be formed by dragging the handles.
Handles:
There are two handles.
Handle 1: Changes the function amplitude and origin. The handle
position corresponds to the current amplitude and origin values.
Handle 2: Changes the reciprocal exponent value. The handle y position
is 1/e * amplitude (=0.367*A); the x position is offset from the
function origin by the reciprocal of the exponent.
- See Also:
- Serialized Form
Methods inherited from class jas.hist.Fittable1DFunction |
clearFit, clearFitParams, destroy, getDerivatives, getExtendedStatistic, getFit, getIncludeParametersInFit, getStatistic, getStatisticNames, initIncludeParametersInFit, setFit, setIncludeParameterInFit |
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 |
ExponentialFunction
public ExponentialFunction(double xmin,
double xmax,
double ymin,
double ymax)
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[] value)
- 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