jasext.hist.function
Class LandauFunction
- java.lang.Object
-
- java.util.Observable
-
- jas2.hist.Basic1DFunction
-
- jas2.hist.Fittable1DFunction
-
- jasext.hist.function.LandauFunction
-
- All Implemented Interfaces:
- DataSource, ExtendedStatistics, FunctionData, HasHandles, HasStatistics, Statistics, java.io.Serializable
public class LandauFunction extends Fittable1DFunction implements HasHandles
The function represents the Landau distribution. This class represents a Landau distribution, as approximated by the Moyal formula \[ Moyal(\lambda) = \frac{\exp{-0.5(\lambda+\exp{-\lambda})}}{\sqrt{2\pi}} \] See J.E. Moyal, Theory of ionization fluctuations, Phil. Mag. 46 (1955) 263. Note that this analytical approximation is too low in the tail. In order to allow for a fit, we define \[ \lambda = \frac{x - m}{s} \] with x the dataset variable.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description LandauFunction(double amplitude, double mean, double sigma)LandauFunction(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()StatisticsgetStatistics()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
setBatch, setChanged, setChanged
-
-
-
-
Constructor Detail
-
LandauFunction
public LandauFunction(double amplitude, double mean, double sigma)
-
LandauFunction
public LandauFunction(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
-
getStatistics
public Statistics getStatistics()
- Specified by:
getStatisticsin interfaceHasStatistics- Overrides:
getStatisticsin classBasic1DFunction
-
getHandles
public Handle[] getHandles(double xLow, double xHigh, double yLow, double yHigh)
- Specified by:
getHandlesin interfaceHasHandles
-
-
DataMelt 3.0 © DataMelt by jWork.ORG