jasext.hist.function
Class ExponentialFunction
- java.lang.Object
-
- java.util.Observable
-
- jas2.hist.Basic1DFunction
-
- jas2.hist.Fittable1DFunction
-
- jasext.hist.function.ExponentialFunction
-
- All Implemented Interfaces:
- DataSource, ExtendedStatistics, FunctionData, HasHandles, HasStatistics, Statistics, java.io.Serializable
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
-
-
Constructor Summary
Constructors Constructor and Description ExponentialFunction(double xmin, double xmax, double ymin, double ymax)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description Handle[]getHandles(double xLow, double xHigh, double yLow, double yHigh)java.lang.String[]getParameterNames()double[]getParameterValues()java.lang.StringgetTitle()Return the caption to be used in the legend for this data.voidsetFit(Fitter fit, double[] value)voidsetParameter(int index, double value)doublevalueAt(double x)doublevalueAt(double x, double[] a)-
Methods inherited from class jas2.hist.Fittable1DFunction
clearFit, clearFitParams, getDerivatives, getExtendedStatistic, getFit, getIncludeParametersInFit, getStatistic, getStatisticNames, setIncludeParameterInFit
-
Methods inherited from class jas2.hist.Basic1DFunction
getStatistics, setBatch, setChanged, setChanged
-
-
-
-
Constructor Detail
-
ExponentialFunction
public ExponentialFunction(double xmin, double xmax, double ymin, double ymax)
-
-
Method Detail
-
valueAt
public double valueAt(double x)
- Specified by:
valueAtin interfaceFunctionData
-
valueAt
public double valueAt(double x, double[] a)- Specified by:
valueAtin classFittable1DFunction
-
getParameterNames
public java.lang.String[] getParameterNames()
- Specified by:
getParameterNamesin interfaceFunctionData
-
getParameterValues
public double[] getParameterValues()
- Specified by:
getParameterValuesin interfaceFunctionData
-
setParameter
public void setParameter(int index, double value)- Specified by:
setParameterin interfaceFunctionData
-
setFit
public void setFit(Fitter fit, double[] value)
- Specified by:
setFitin classFittable1DFunction
-
getTitle
public java.lang.String getTitle()
Description copied from interface:DataSourceReturn the caption to be used in the legend for this data.- Specified by:
getTitlein interfaceDataSource
-
getHandles
public Handle[] getHandles(double xLow, double xHigh, double yLow, double yHigh)
- Specified by:
getHandlesin interfaceHasHandles
-
-
DataMelt 3.0 © DataMelt by jWork.ORG