|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecthep.aida.ref.fitter.Fitter
public class Fitter
| Field Summary |
|---|
| Fields inherited from interface hep.aida.dev.IDevFitter |
|---|
BINNED_FIT, UNBINNED_FIT |
| Constructor Summary | |
|---|---|
Fitter(String fitMethodType,
String engineType,
String options)
Create a new Fitter specifying the underlying optimizing engine. |
|
| Method Summary | |
|---|---|
String[] |
constraints()
|
IDataPointSet |
createContour(IFitData d,
IFitResult r,
String par1,
String par2,
int npts,
double nSigmas)
|
IDataPointSet |
createScan1D(IFitData d,
IFunction originalFunction,
String parName,
int npts,
double pmin,
double pmax)
|
String |
engineName()
Get the name of the engine currently in use. |
IFitResult |
fit(hep.aida.ref.pdf.Function f)
|
IFitResult |
fit(IBaseHistogram h,
IFunction f)
Shortcut to fit an IBaseHistogram directly with an IFunction. |
IFitResult |
fit(IBaseHistogram h,
IFunction f,
String range)
Shortcut to fit an IBaseHistogram directly with an IFunction. |
IFitResult |
fit(IBaseHistogram h,
String model)
Shortcut to fit an IBaseHistogram directly with an IFunction. |
IFitResult |
fit(IBaseHistogram h,
String model,
double[] initialParameters)
Shortcut to fit an IBaseHistogram directly with an IFunction. |
IFitResult |
fit(IBaseHistogram h,
String model,
double[] initialParameters,
String range)
Shortcut to fit an IBaseHistogram directly with an IFunction. |
IFitResult |
fit(IBaseHistogram h,
String model,
String range)
Shortcut to fit an IBaseHistogram directly with an IFunction. |
IFitResult |
fit(IDataPointSet dataPointSet,
IFunction f)
Shortcut to fit an IDataPointSet directly with an IFunction. |
IFitResult |
fit(IDataPointSet dataPointSet,
IFunction f,
double[] initialParameters)
|
IFitResult |
fit(IDataPointSet dataPointSet,
IFunction f,
double[] initialParameters,
String range,
Object correlationObject)
|
IFitResult |
fit(IDataPointSet dataPointSet,
IFunction f,
String range)
Shortcut to fit an IDataPointSet directly with an IFunction. |
IFitResult |
fit(IDataPointSet dataPointSet,
IFunction f,
String range,
Object correlationObject)
|
IFitResult |
fit(IDataPointSet dataPointSet,
String model)
Shortcut to fit an IDataPointSet directly with an IFunction. |
IFitResult |
fit(IDataPointSet dataPointSet,
String model,
double[] initialParameters)
Shortcut to fit an IDataPointSet directly with an IFunction. |
IFitResult |
fit(IDataPointSet dataPointSet,
String model,
double[] initialParameters,
String range)
Shortcut to fit an IDataPointSet directly with an IFunction. |
IFitResult |
fit(IDataPointSet dataPointSet,
String model,
double[] initialParameters,
String range,
Object correlationObject)
|
IFitResult |
fit(IDataPointSet dataPointSet,
String model,
String range)
Shortcut to fit an IDataPointSet directly with an IFunction. |
IFitResult |
fit(IDataPointSet dataPointSet,
String model,
String range,
Object correlationObject)
|
IFitResult |
fit(IFitData d,
IFunction originalFunction)
Fit an IFunction to an IFitData. |
IFitResult |
fit(IFitData d,
IFunction originalFunction,
String range)
Fit an IFunction to an IFitData. |
IFitResult |
fit(IFitData d,
IFunction originalFunction,
String range,
Object correlationObject)
|
IFitResult |
fit(IFitData d,
String model)
Fit a given model to an IFitData. |
IFitResult |
fit(IFitData d,
String model,
double[] initialParameters)
Fit a given model to an IFitData. |
IFitResult |
fit(IFitData d,
String model,
double[] initialParameters,
String range)
Fit a given model to an IFitData. |
IFitResult |
fit(IFitData d,
String model,
double[] initialParameters,
String range,
Object correlationObject)
|
IFitResult |
fit(IFitData d,
String model,
String range)
Fit a given model to an IFitData. |
IFitResult |
fit(IFitData d,
String model,
String range,
Object correlationObject)
|
String |
fitMethodName()
Get the name of the fit method currently in use. |
IFitParameterSettings |
fitParameterSettings(String name)
Access to fit parameter settings. |
String[] |
listParameterSettings()
Get a vector of names of all parameter settings defined in the fitter. |
static void |
main(String[] args)
|
IOptimizer |
optimizer()
|
void |
resetConstraints()
Reset all the constraints. |
void |
resetParameterSettings()
Reset all parameter settings which fitter remebers. |
void |
setConstraint(String expression)
Set a general constraint in the parameter space. |
void |
setEngine(String engineType)
Set the optimization engine which is used internally for fitting. |
void |
setFitMethod(String fitMethodType)
Set the fit method type. |
void |
setUseFunctionGradient(boolean useGradient)
Choose between using or not using the analytical derivatives if provided by the function. |
boolean |
useFunctionGradient()
Check if the IFitter is set to use the analytical derivatives provided by the IFunction. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Fitter(String fitMethodType,
String engineType,
String options)
throws IllegalArgumentException
fitMethodType - The type of fitter.engineType - The type of optimizer to use.
IllegalArgumentException - if the engineType does not exist.| Method Detail |
|---|
public void setEngine(String engineType)
throws IllegalArgumentException
IFitter
setEngine in interface IFitterengineType - The name of the optimizer engine.
Examples of predefined engines: "minuit". The engine name is case-insensitive.
Different engines are provided by different implementations.
IllegalArgumentException - If the name does not correspond to a valid engine.public String engineName()
IFitter
engineName in interface IFitter
public void setFitMethod(String fitMethodType)
throws IllegalArgumentException
IFitter
setFitMethod in interface IFitterfitMethodType - The name of the fit method.
IllegalArgumentException - If the name does not correspond to a valid fit method.public IOptimizer optimizer()
public String fitMethodName()
IFitter
fitMethodName in interface IFitterpublic IFitParameterSettings fitParameterSettings(String name)
IFitter
fitParameterSettings in interface IFitterpublic String[] listParameterSettings()
IFitter
listParameterSettings in interface IFitterpublic void resetParameterSettings()
IFitter
resetParameterSettings in interface IFitterpublic IFitResult fit(hep.aida.ref.pdf.Function f)
public IFitResult fit(IFitData d,
IFunction originalFunction)
IFitter
fit in interface IFitterd - 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.
public IFitResult fit(IFitData d,
IFunction originalFunction,
String range)
IFitter
fit in interface IFitterd - 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.
public IFitResult fit(IFitData d,
IFunction originalFunction,
String range,
Object correlationObject)
fit in interface IExtFitter
public IFitResult fit(IBaseHistogram h,
IFunction f)
IFitter
fit in interface IFitterh - 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.
public IFitResult fit(IBaseHistogram h,
IFunction f,
String range)
IFitter
fit in interface IFitterh - 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.
public IFitResult fit(IBaseHistogram h,
String model)
IFitter
fit in interface IFitterh - 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.
public IFitResult fit(IBaseHistogram h,
String model,
String range)
IFitter
fit in interface IFitterh - 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.
public IFitResult fit(IBaseHistogram h,
String model,
double[] initialParameters)
IFitter
fit in interface IFitterh - 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.
public IFitResult fit(IBaseHistogram h,
String model,
double[] initialParameters,
String range)
IFitter
fit in interface IFitterh - 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.
public IFitResult fit(IDataPointSet dataPointSet,
IFunction f)
IFitter
fit in interface IFitterdataPointSet - The IDataPointSet to be fitted.
public IFitResult fit(IDataPointSet dataPointSet,
IFunction f,
String range)
IFitter
fit in interface IFitterdataPointSet - 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.
public IFitResult fit(IDataPointSet dataPointSet,
IFunction f,
double[] initialParameters)
public IFitResult fit(IDataPointSet dataPointSet,
IFunction f,
String range,
Object correlationObject)
fit in interface IExtFitter
public IFitResult fit(IDataPointSet dataPointSet,
IFunction f,
double[] initialParameters,
String range,
Object correlationObject)
public IFitResult fit(IDataPointSet dataPointSet,
String model)
IFitter
fit in interface IFitterdataPointSet - 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.
public IFitResult fit(IDataPointSet dataPointSet,
String model,
String range)
IFitter
fit in interface IFitterdataPointSet - 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.
public IFitResult fit(IDataPointSet dataPointSet,
String model,
String range,
Object correlationObject)
fit in interface IExtFitter
public IFitResult fit(IDataPointSet dataPointSet,
String model,
double[] initialParameters)
IFitter
fit in interface IFitterdataPointSet - 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.
public IFitResult fit(IDataPointSet dataPointSet,
String model,
double[] initialParameters,
String range)
IFitter
fit in interface IFitterdataPointSet - 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.
public IFitResult fit(IDataPointSet dataPointSet,
String model,
double[] initialParameters,
String range,
Object correlationObject)
fit in interface IExtFitter
public IFitResult fit(IFitData d,
String model,
double[] initialParameters)
IFitter
fit in interface IFittermodel - 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.
public IFitResult fit(IFitData d,
String model,
double[] initialParameters,
String range)
IFitter
fit in interface IFittermodel - 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.
public IFitResult fit(IFitData d,
String model,
double[] initialParameters,
String range,
Object correlationObject)
fit in interface IExtFitter
public IFitResult fit(IFitData d,
String model)
IFitter
fit in interface IFittermodel - 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.
public IFitResult fit(IFitData d,
String model,
String range)
IFitter
fit in interface IFittermodel - 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.
public IFitResult fit(IFitData d,
String model,
String range,
Object correlationObject)
fit in interface IExtFitter
public void setConstraint(String expression)
throws IllegalArgumentException
IFitter
setConstraint in interface IFitterIllegalArgumentExceptionpublic String[] constraints()
constraints in interface IFitterpublic void resetConstraints()
IFitter
resetConstraints in interface IFitter
public IDataPointSet createScan1D(IFitData d,
IFunction originalFunction,
String parName,
int npts,
double pmin,
double pmax)
createScan1D in interface IFitter
public IDataPointSet createContour(IFitData d,
IFitResult r,
String par1,
String par2,
int npts,
double nSigmas)
createContour in interface IFitterpublic boolean useFunctionGradient()
IFitter
useFunctionGradient in interface IFittertrue if the IFitter uses the analytical derivatives.public void setUseFunctionGradient(boolean useGradient)
IFitter
setUseFunctionGradient in interface IFitteruseGradient - If true the IFitter will use the
analytical derivatives if provided by the IFunction.
public static void main(String[] args)
throws IOException
IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||