hep.aida.ref.fitter
Class Fitter
- java.lang.Object
-
- hep.aida.ref.fitter.Fitter
-
- All Implemented Interfaces:
- IDevFitter, IExtFitter, IFitter
public class Fitter extends java.lang.Object implements IExtFitter
-
-
Field Summary
-
Fields inherited from interface hep.aida.dev.IDevFitter
BINNED_FIT, UNBINNED_FIT
-
-
Constructor Summary
Constructors Constructor and Description Fitter(java.lang.String fitMethodType, java.lang.String engineType, java.lang.String options)Create a new Fitter specifying the underlying optimizing engine.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.String[]constraints()IDataPointSetcreateContour(IFitData d, IFitResult r, java.lang.String par1, java.lang.String par2, int npts, double nSigmas)IDataPointSetcreateScan1D(IFitData d, IFunction originalFunction, java.lang.String parName, int npts, double pmin, double pmax)java.lang.StringengineName()Get the name of the engine currently in use.IFitResultfit(Function f)IFitResultfit(IBaseHistogram h, IFunction f)Shortcut to fit an IBaseHistogram directly with an IFunction.IFitResultfit(IBaseHistogram h, IFunction f, java.lang.String range)Shortcut to fit an IBaseHistogram directly with an IFunction.IFitResultfit(IBaseHistogram h, java.lang.String model)Shortcut to fit an IBaseHistogram directly with an IFunction.IFitResultfit(IBaseHistogram h, java.lang.String model, double[] initialParameters)Shortcut to fit an IBaseHistogram directly with an IFunction.IFitResultfit(IBaseHistogram h, java.lang.String model, double[] initialParameters, java.lang.String range)Shortcut to fit an IBaseHistogram directly with an IFunction.IFitResultfit(IBaseHistogram h, java.lang.String model, java.lang.String range)Shortcut to fit an IBaseHistogram directly with an IFunction.IFitResultfit(IDataPointSet dataPointSet, IFunction f)Shortcut to fit an IDataPointSet directly with an IFunction.IFitResultfit(IDataPointSet dataPointSet, IFunction f, double[] initialParameters)IFitResultfit(IDataPointSet dataPointSet, IFunction f, double[] initialParameters, java.lang.String range, java.lang.Object correlationObject)IFitResultfit(IDataPointSet dataPointSet, IFunction f, java.lang.String range)Shortcut to fit an IDataPointSet directly with an IFunction.IFitResultfit(IDataPointSet dataPointSet, IFunction f, java.lang.String range, java.lang.Object correlationObject)IFitResultfit(IDataPointSet dataPointSet, java.lang.String model)Shortcut to fit an IDataPointSet directly with an IFunction.IFitResultfit(IDataPointSet dataPointSet, java.lang.String model, double[] initialParameters)Shortcut to fit an IDataPointSet directly with an IFunction.IFitResultfit(IDataPointSet dataPointSet, java.lang.String model, double[] initialParameters, java.lang.String range)Shortcut to fit an IDataPointSet directly with an IFunction.IFitResultfit(IDataPointSet dataPointSet, java.lang.String model, double[] initialParameters, java.lang.String range, java.lang.Object correlationObject)IFitResultfit(IDataPointSet dataPointSet, java.lang.String model, java.lang.String range)Shortcut to fit an IDataPointSet directly with an IFunction.IFitResultfit(IDataPointSet dataPointSet, java.lang.String model, java.lang.String range, java.lang.Object correlationObject)IFitResultfit(IFitData d, IFunction originalFunction)Fit an IFunction to an IFitData.IFitResultfit(IFitData d, IFunction originalFunction, java.lang.String range)Fit an IFunction to an IFitData.IFitResultfit(IFitData d, IFunction originalFunction, java.lang.String range, java.lang.Object correlationObject)IFitResultfit(IFitData d, java.lang.String model)Fit a given model to an IFitData.IFitResultfit(IFitData d, java.lang.String model, double[] initialParameters)Fit a given model to an IFitData.IFitResultfit(IFitData d, java.lang.String model, double[] initialParameters, java.lang.String range)Fit a given model to an IFitData.IFitResultfit(IFitData d, java.lang.String model, double[] initialParameters, java.lang.String range, java.lang.Object correlationObject)IFitResultfit(IFitData d, java.lang.String model, java.lang.String range)Fit a given model to an IFitData.IFitResultfit(IFitData d, java.lang.String model, java.lang.String range, java.lang.Object correlationObject)java.lang.StringfitMethodName()Get the name of the fit method currently in use.IFitParameterSettingsfitParameterSettings(java.lang.String name)Access to fit parameter settings.java.lang.String[]listParameterSettings()Get a vector of names of all parameter settings defined in the fitter.static voidmain(java.lang.String[] args)IOptimizeroptimizer()voidresetConstraints()Reset all the constraints.voidresetParameterSettings()Reset all parameter settings which fitter remebers.voidsetConstraint(java.lang.String expression)Set a general constraint in the parameter space.voidsetEngine(java.lang.String engineType)Set the optimization engine which is used internally for fitting.voidsetFitMethod(java.lang.String fitMethodType)Set the fit method type.voidsetUseFunctionGradient(boolean useGradient)Choose between using or not using the analytical derivatives if provided by the function.booleanuseFunctionGradient()Check if the IFitter is set to use the analytical derivatives provided by the IFunction.
-
-
-
Constructor Detail
-
Fitter
public Fitter(java.lang.String fitMethodType, java.lang.String engineType, java.lang.String options) throws java.lang.IllegalArgumentExceptionCreate a new Fitter specifying the underlying optimizing engine.- Parameters:
fitMethodType- The type of fitter.engineType- The type of optimizer to use.- Throws:
java.lang.IllegalArgumentException- if the engineType does not exist.
-
-
Method Detail
-
setEngine
public void setEngine(java.lang.String engineType) throws java.lang.IllegalArgumentExceptionDescription copied from interface:IFitterSet the optimization engine which is used internally for fitting.- Specified by:
setEnginein interfaceIFitter- Parameters:
engineType- The name of the optimizer engine. Examples of predefined engines: "minuit". The engine name is case-insensitive. Different engines are provided by different implementations.- Throws:
java.lang.IllegalArgumentException- If the name does not correspond to a valid engine.
-
engineName
public java.lang.String engineName()
Description copied from interface:IFitterGet the name of the engine currently in use.- Specified by:
engineNamein interfaceIFitter- Returns:
- The name of the optimizer engine used by the IFitter.
-
setFitMethod
public void setFitMethod(java.lang.String fitMethodType) throws java.lang.IllegalArgumentExceptionDescription copied from interface:IFitterSet the fit method type. Examples of pre-defined methods: "chi2", "ml". The method names are case-insensitive.- Specified by:
setFitMethodin interfaceIFitter- Parameters:
fitMethodType- The name of the fit method.- Throws:
java.lang.IllegalArgumentException- If the name does not correspond to a valid fit method.
-
optimizer
public IOptimizer optimizer()
-
fitMethodName
public java.lang.String fitMethodName()
Description copied from interface:IFitterGet the name of the fit method currently in use.- Specified by:
fitMethodNamein interfaceIFitter- Returns:
- The name of the fit method.
-
fitParameterSettings
public IFitParameterSettings fitParameterSettings(java.lang.String name)
Description copied from interface:IFitterAccess to fit parameter settings. FitParameterSettings object belongs to and is managed by the fitter. Fitter implementation takes care that the returned reference is valid thru the lifetime of fitter. User can set the settings of the parameters independently of the parameters of the fitted function. Setting for parameters unknown in the function and set in the fitter are ignored in the fit. If settings are not explicitly set in the fitter, their default values are attached to function parameters during the fit.- Specified by:
fitParameterSettingsin interfaceIFitter
-
listParameterSettings
public java.lang.String[] listParameterSettings()
Description copied from interface:IFitterGet a vector of names of all parameter settings defined in the fitter.- Specified by:
listParameterSettingsin interfaceIFitter
-
resetParameterSettings
public void resetParameterSettings()
Description copied from interface:IFitterReset all parameter settings which fitter remebers.- Specified by:
resetParameterSettingsin interfaceIFitter
-
fit
public IFitResult fit(Function f)
-
fit
public IFitResult fit(IFitData d, IFunction originalFunction)
Description copied from interface:IFitterFit an IFunction to an IFitData. The result of the fit is an IFitResult.- Specified by:
fitin interfaceIFitter- Parameters:
d- The IFitData to be fitted.originalFunction- The IFunction to fit on the data. multiple ranges for more than one dimension: "x:(-1.,0.),(2.,3.) y:(-5,5)" For a 1-d fit it is possible to omit the axis label: "(-1,0),(2,3.)". Open ranges are defined by omitting the desired bound: "(,0)" or "(0,)" stand for less than zero and greater than zero respectively.- Returns:
- The IFitResult containing the results of the fit.
-
fit
public IFitResult fit(IFitData d, IFunction originalFunction, java.lang.String range)
Description copied from interface:IFitterFit an IFunction to an IFitData. The result of the fit is an IFitResult.- Specified by:
fitin interfaceIFitter- Parameters:
d- The IFitData to be fitted.originalFunction- The IFunction to fit on the data.range- The range over which to perform the fit. It is possible to spedify multiple ranges for more than one dimension: "x:(-1.,0.),(2.,3.) y:(-5,5)" For a 1-d fit it is possible to omit the axis label: "(-1,0),(2,3.)". Open ranges are defined by omitting the desired bound: "(,0)" or "(0,)" stand for less than zero and greater than zero respectively.- Returns:
- The IFitResult containing the results of the fit.
-
fit
public IFitResult fit(IFitData d, IFunction originalFunction, java.lang.String range, java.lang.Object correlationObject)
- Specified by:
fitin interfaceIExtFitter
-
fit
public IFitResult fit(IBaseHistogram h, IFunction f)
Description copied from interface:IFitterShortcut to fit an IBaseHistogram directly with an IFunction. The dimension of the IBaseHistogram must match the dimension of the IFunction. IHistograms and IProfiles are for binned fits only, IClouds only for unbinned fits.- Specified by:
fitin interfaceIFitter- Parameters:
h- The IBaseHistogram to be fitted.f- The IFunction to fit on the data. multiple ranges for more than one dimension: "x:(-1.,0.),(2.,3.) y:(-5,5)" For a 1-d fit it is possible to omit the axis label: "(-1,0),(2,3.)". Open ranges are defined by omitting the desired bound: "(,0)" or "(0,)" stand for less than zero and greater than zero respectively.- Returns:
- The IFitResult containing the result of the fit.
-
fit
public IFitResult fit(IBaseHistogram h, IFunction f, java.lang.String range)
Description copied from interface:IFitterShortcut to fit an IBaseHistogram directly with an IFunction. The dimension of the IBaseHistogram must match the dimension of the IFunction. IHistograms and IProfiles are for binned fits only, IClouds only for unbinned fits.- Specified by:
fitin interfaceIFitter- Parameters:
h- The IBaseHistogram to be fitted.f- The IFunction to fit on the data.range- The range over which to perform the fit. It is possible to spedify multiple ranges for more than one dimension: "x:(-1.,0.),(2.,3.) y:(-5,5)" For a 1-d fit it is possible to omit the axis label: "(-1,0),(2,3.)". Open ranges are defined by omitting the desired bound: "(,0)" or "(0,)" stand for less than zero and greater than zero respectively.- Returns:
- The IFitResult containing the result of the fit.
-
fit
public IFitResult fit(IBaseHistogram h, java.lang.String model)
Description copied from interface:IFitterShortcut to fit an IBaseHistogram directly with an IFunction. The dimension of the IBaseHistogram must match the dimension of the IFunction. IHistograms and IProfiles are for binned fits only, IClouds only for unbinned fits.- Specified by:
fitin interfaceIFitter- Parameters:
h- The IBaseHistogram to be fitted.model- The string defining the function to be used. multiple ranges for more than one dimension: "x:(-1.,0.),(2.,3.) y:(-5,5)" For a 1-d fit it is possible to omit the axis label: "(-1,0),(2,3.)". Open ranges are defined by omitting the desired bound: "(,0)" or "(0,)" stand for less than zero and greater than zero respectively.- Returns:
- The IFitResult containing the result of the fit.
-
fit
public IFitResult fit(IBaseHistogram h, java.lang.String model, java.lang.String range)
Description copied from interface:IFitterShortcut to fit an IBaseHistogram directly with an IFunction. The dimension of the IBaseHistogram must match the dimension of the IFunction. IHistograms and IProfiles are for binned fits only, IClouds only for unbinned fits.- Specified by:
fitin interfaceIFitter- Parameters:
h- The IBaseHistogram to be fitted.model- The string defining the function to be used.range- The range over which to perform the fit. It is possible to spedify multiple ranges for more than one dimension: "x:(-1.,0.),(2.,3.) y:(-5,5)" For a 1-d fit it is possible to omit the axis label: "(-1,0),(2,3.)". Open ranges are defined by omitting the desired bound: "(,0)" or "(0,)" stand for less than zero and greater than zero respectively.- Returns:
- The IFitResult containing the result of the fit.
-
fit
public IFitResult fit(IBaseHistogram h, java.lang.String model, double[] initialParameters)
Description copied from interface:IFitterShortcut to fit an IBaseHistogram directly with an IFunction. The dimension of the IBaseHistogram must match the dimension of the IFunction. IHistograms and IProfiles are for binned fits only, IClouds only for unbinned fits.- Specified by:
fitin interfaceIFitter- Parameters:
h- The IBaseHistogram to be fitted.model- The string defining the function to be used.initialParameters- The array of the initial parameter values; its size must match the number of parameters in the function. multiple ranges for more than one dimension: "x:(-1.,0.),(2.,3.) y:(-5,5)" For a 1-d fit it is possible to omit the axis label: "(-1,0),(2,3.)". Open ranges are defined by omitting the desired bound: "(,0)" or "(0,)" stand for less than zero and greater than zero respectively.- Returns:
- The IFitResult containing the result of the fit.
-
fit
public IFitResult fit(IBaseHistogram h, java.lang.String model, double[] initialParameters, java.lang.String range)
Description copied from interface:IFitterShortcut to fit an IBaseHistogram directly with an IFunction. The dimension of the IBaseHistogram must match the dimension of the IFunction. IHistograms and IProfiles are for binned fits only, IClouds only for unbinned fits.- Specified by:
fitin interfaceIFitter- Parameters:
h- The IBaseHistogram to be fitted.model- The string defining the function to be used.initialParameters- The array of the initial parameter values; its size must match the number of parameters in the function.range- The range over which to perform the fit. It is possible to spedify multiple ranges for more than one dimension: "x:(-1.,0.),(2.,3.) y:(-5,5)" For a 1-d fit it is possible to omit the axis label: "(-1,0),(2,3.)". Open ranges are defined by omitting the desired bound: "(,0)" or "(0,)" stand for less than zero and greater than zero respectively.- Returns:
- The IFitResult containing the result of the fit.
-
fit
public IFitResult fit(IDataPointSet dataPointSet, IFunction f)
Description copied from interface:IFitterShortcut to fit an IDataPointSet directly with an IFunction. The dimension of the IDataPointSet must be equal the dimension of the IFunction + 1. This are binned fits only; the last coordinate of the IDataPointSet is used as the "height" in a fit to an IBaseHistogram.
-
fit
public IFitResult fit(IDataPointSet dataPointSet, IFunction f, java.lang.String range)
Description copied from interface:IFitterShortcut to fit an IDataPointSet directly with an IFunction. The dimension of the IDataPointSet must be equal the dimension of the IFunction + 1. This are binned fits only; the last coordinate of the IDataPointSet is used as the "height" in a fit to an IBaseHistogram.- Specified by:
fitin interfaceIFitter- Parameters:
dataPointSet- The IDataPointSet to be fitted.range- The range over which to perform the fit. It is possible to spedify multiple ranges for more than one dimension: "x:(-1.,0.),(2.,3.) y:(-5,5)" For a 1-d fit it is possible to omit the axis label: "(-1,0),(2,3.)". Open ranges are defined by omitting the desired bound: "(,0)" or "(0,)" stand for less than zero and greater than zero respectively.- Returns:
- The IFitResult containing the result of the fit.
-
fit
public IFitResult fit(IDataPointSet dataPointSet, IFunction f, double[] initialParameters)
-
fit
public IFitResult fit(IDataPointSet dataPointSet, IFunction f, java.lang.String range, java.lang.Object correlationObject)
- Specified by:
fitin interfaceIExtFitter
-
fit
public IFitResult fit(IDataPointSet dataPointSet, IFunction f, double[] initialParameters, java.lang.String range, java.lang.Object correlationObject)
-
fit
public IFitResult fit(IDataPointSet dataPointSet, java.lang.String model)
Description copied from interface:IFitterShortcut to fit an IDataPointSet directly with an IFunction. The dimension of the IDataPointSet must be equal the dimension of the IFunction + 1. This are binned fits only; the last coordinate of the IDataPointSet is used as the "height" in a fit to an IBaseHistogram.- Specified by:
fitin interfaceIFitter- Parameters:
dataPointSet- The IDataPointSet to be fitted.model- The string defining the function to be used. multiple ranges for more than one dimension: "x:(-1.,0.),(2.,3.) y:(-5,5)" For a 1-d fit it is possible to omit the axis label: "(-1,0),(2,3.)". Open ranges are defined by omitting the desired bound: "(,0)" or "(0,)" stand for less than zero and greater than zero respectively.- Returns:
- The IFitResult containing the result of the fit.
-
fit
public IFitResult fit(IDataPointSet dataPointSet, java.lang.String model, java.lang.String range)
Description copied from interface:IFitterShortcut to fit an IDataPointSet directly with an IFunction. The dimension of the IDataPointSet must be equal the dimension of the IFunction + 1. This are binned fits only; the last coordinate of the IDataPointSet is used as the "height" in a fit to an IBaseHistogram.- Specified by:
fitin interfaceIFitter- Parameters:
dataPointSet- The IDataPointSet to be fitted.model- The string defining the function to be used.range- The range over which to perform the fit. It is possible to spedify multiple ranges for more than one dimension: "x:(-1.,0.),(2.,3.) y:(-5,5)" For a 1-d fit it is possible to omit the axis label: "(-1,0),(2,3.)". Open ranges are defined by omitting the desired bound: "(,0)" or "(0,)" stand for less than zero and greater than zero respectively.- Returns:
- The IFitResult containing the result of the fit.
-
fit
public IFitResult fit(IDataPointSet dataPointSet, java.lang.String model, java.lang.String range, java.lang.Object correlationObject)
- Specified by:
fitin interfaceIExtFitter
-
fit
public IFitResult fit(IDataPointSet dataPointSet, java.lang.String model, double[] initialParameters)
Description copied from interface:IFitterShortcut to fit an IDataPointSet directly with an IFunction. The dimension of the IDataPointSet must be equal the dimension of the IFunction + 1. This are binned fits only; the last coordinate of the IDataPointSet is used as the "height" in a fit to an IBaseHistogram.- Specified by:
fitin interfaceIFitter- Parameters:
dataPointSet- The IDataPointSet to be fitted.model- The string defining the function to be used.initialParameters- The array of the initial parameter values; its size must match the number of parameters in the function. multiple ranges for more than one dimension: "x:(-1.,0.),(2.,3.) y:(-5,5)" For a 1-d fit it is possible to omit the axis label: "(-1,0),(2,3.)". Open ranges are defined by omitting the desired bound: "(,0)" or "(0,)" stand for less than zero and greater than zero respectively.- Returns:
- The IFitResult containing the result of the fit.
-
fit
public IFitResult fit(IDataPointSet dataPointSet, java.lang.String model, double[] initialParameters, java.lang.String range)
Description copied from interface:IFitterShortcut to fit an IDataPointSet directly with an IFunction. The dimension of the IDataPointSet must be equal the dimension of the IFunction + 1. This are binned fits only; the last coordinate of the IDataPointSet is used as the "height" in a fit to an IBaseHistogram.- Specified by:
fitin interfaceIFitter- Parameters:
dataPointSet- The IDataPointSet to be fitted.model- The string defining the function to be used.initialParameters- The array of the initial parameter values; its size must match the number of parameters in the function.range- The range over which to perform the fit. It is possible to spedify multiple ranges for more than one dimension: "x:(-1.,0.),(2.,3.) y:(-5,5)" For a 1-d fit it is possible to omit the axis label: "(-1,0),(2,3.)". Open ranges are defined by omitting the desired bound: "(,0)" or "(0,)" stand for less than zero and greater than zero respectively.- Returns:
- The IFitResult containing the result of the fit.
-
fit
public IFitResult fit(IDataPointSet dataPointSet, java.lang.String model, double[] initialParameters, java.lang.String range, java.lang.Object correlationObject)
- Specified by:
fitin interfaceIExtFitter
-
fit
public IFitResult fit(IFitData d, java.lang.String model, double[] initialParameters)
Description copied from interface:IFitterFit a given model to an IFitData. The result of the fit is an IFitResult.- Specified by:
fitin interfaceIFittermodel- The string defining the function to be used.initialParameters- The array of the initial parameter values; its size must match the number of parameters in the function. multiple ranges for more than one dimension: "x:(-1.,0.),(2.,3.) y:(-5,5)" For a 1-d fit it is possible to omit the axis label: "(-1,0),(2,3.)". Open ranges are defined by omitting the desired bound: "(,0)" or "(0,)" stand for less than zero and greater than zero respectively.- Returns:
- The IFitResult containing the results of the fit.
-
fit
public IFitResult fit(IFitData d, java.lang.String model, double[] initialParameters, java.lang.String range)
Description copied from interface:IFitterFit a given model to an IFitData. The result of the fit is an IFitResult.- Specified by:
fitin interfaceIFittermodel- The string defining the function to be used.initialParameters- The array of the initial parameter values; its size must match the number of parameters in the function.range- The range over which to perform the fit. It is possible to spedify multiple ranges for more than one dimension: "x:(-1.,0.),(2.,3.) y:(-5,5)" For a 1-d fit it is possible to omit the axis label: "(-1,0),(2,3.)". Open ranges are defined by omitting the desired bound: "(,0)" or "(0,)" stand for less than zero and greater than zero respectively.- Returns:
- The IFitResult containing the results of the fit.
-
fit
public IFitResult fit(IFitData d, java.lang.String model, double[] initialParameters, java.lang.String range, java.lang.Object correlationObject)
- Specified by:
fitin interfaceIExtFitter
-
fit
public IFitResult fit(IFitData d, java.lang.String model)
Description copied from interface:IFitterFit a given model to an IFitData. The result of the fit is an IFitResult.- Specified by:
fitin interfaceIFittermodel- The string defining the function to be used. multiple ranges for more than one dimension: "x:(-1.,0.),(2.,3.) y:(-5,5)" For a 1-d fit it is possible to omit the axis label: "(-1,0),(2,3.)". Open ranges are defined by omitting the desired bound: "(,0)" or "(0,)" stand for less than zero and greater than zero respectively.- Returns:
- The IFitResult containing the results of the fit.
-
fit
public IFitResult fit(IFitData d, java.lang.String model, java.lang.String range)
Description copied from interface:IFitterFit a given model to an IFitData. The result of the fit is an IFitResult.- Specified by:
fitin interfaceIFittermodel- The string defining the function to be used.range- The range over which to perform the fit. It is possible to spedify multiple ranges for more than one dimension: "x:(-1.,0.),(2.,3.) y:(-5,5)" For a 1-d fit it is possible to omit the axis label: "(-1,0),(2,3.)". Open ranges are defined by omitting the desired bound: "(,0)" or "(0,)" stand for less than zero and greater than zero respectively.- Returns:
- The IFitResult containing the results of the fit.
-
fit
public IFitResult fit(IFitData d, java.lang.String model, java.lang.String range, java.lang.Object correlationObject)
- Specified by:
fitin interfaceIExtFitter
-
setConstraint
public void setConstraint(java.lang.String expression) throws java.lang.IllegalArgumentExceptionDescription copied from interface:IFitterSet a general constraint in the parameter space. The constraint is a parsed expression. PENDING: The syntax to be fixed.- Specified by:
setConstraintin interfaceIFitter- Throws:
java.lang.IllegalArgumentException
-
constraints
public java.lang.String[] constraints()
- Specified by:
constraintsin interfaceIFitter
-
resetConstraints
public void resetConstraints()
Description copied from interface:IFitterReset all the constraints.- Specified by:
resetConstraintsin interfaceIFitter
-
createScan1D
public IDataPointSet createScan1D(IFitData d, IFunction originalFunction, java.lang.String parName, int npts, double pmin, double pmax)
- Specified by:
createScan1Din interfaceIFitter
-
createContour
public IDataPointSet createContour(IFitData d, IFitResult r, java.lang.String par1, java.lang.String par2, int npts, double nSigmas)
- Specified by:
createContourin interfaceIFitter
-
useFunctionGradient
public boolean useFunctionGradient()
Description copied from interface:IFitterCheck if the IFitter is set to use the analytical derivatives provided by the IFunction.- Specified by:
useFunctionGradientin interfaceIFitter- Returns:
trueif the IFitter uses the analytical derivatives.
-
setUseFunctionGradient
public void setUseFunctionGradient(boolean useGradient)
Description copied from interface:IFitterChoose between using or not using the analytical derivatives if provided by the function.- Specified by:
setUseFunctionGradientin interfaceIFitter- Parameters:
useGradient- Iftruethe IFitter will use the analytical derivatives if provided by the IFunction.
-
main
public static void main(java.lang.String[] args) throws java.io.IOException- Throws:
java.io.IOException
-
-
DMelt 3.0 © DataMelt by jWork.ORG