org.freehep.math.minuit
Class MnUserParameters
- java.lang.Object
-
- org.freehep.math.minuit.MnUserParameters
-
public class MnUserParameters extends java.lang.ObjectAPI class for the user interaction with the parameters. Serves as input to the minimizer as well as output from it; users can interact: fix/release parameters, set values and errors, etc.; parameters can be accessed via their parameter number or via their user-specified name.
-
-
Constructor Summary
Constructors Constructor and Description MnUserParameters()Creates a new instance of MnUserParametersMnUserParameters(double[] par, double[] err)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidadd(java.lang.String name, double val)Add const parameter name, valuevoidadd(java.lang.String name, double val, double err)Add free parameter name, value, errorvoidadd(java.lang.String name, double val, double err, double low, double up)Add limited parameter name, value, lower bound, upper bounddoubleerror(int index)doubleerror(java.lang.String name)voidfix(int index)Fixes the specified parameter (so that the minimizer will no longer vary it)voidfix(java.lang.String name)Fixes the specified parameter (so that the minimizer will no longer vary it)MnMachinePrecisionprecision()voidrelease(int index)Releases the specified parameter (so that the minimizer can vary it)voidrelease(java.lang.String name)Releases the specified parameter (so that the minimizer can vary it)voidremoveLimits(int index)voidremoveLimits(java.lang.String name)voidsetError(int index, double err)voidsetError(java.lang.String name, double err)voidsetLimits(int index, double low, double up)Set the lower and upper bound on the specified variable.voidsetLimits(java.lang.String name, double low, double up)Set the lower and upper bound on the specified variable.voidsetLowerLimit(int index, double low)voidsetLowerLimit(java.lang.String name, double low)voidsetPrecision(double eps)voidsetUpperLimit(int index, double up)voidsetUpperLimit(java.lang.String name, double up)voidsetValue(int index, double val)Set the value of parameter.voidsetValue(java.lang.String name, double val)Set the value of parameter.java.lang.StringtoString()doublevalue(int index)doublevalue(java.lang.String name)intvariableParameters()
-
-
-
Constructor Detail
-
MnUserParameters
public MnUserParameters()
Creates a new instance of MnUserParameters
-
MnUserParameters
public MnUserParameters(double[] par, double[] err)
-
-
Method Detail
-
variableParameters
public int variableParameters()
-
add
public void add(java.lang.String name, double val, double err)Add free parameter name, value, errorWhen adding parameters, MINUIT assigns indices to each parameter which will be the same as in the double[] in the FCNBase.valueOf(). That means the first parameter the user adds gets index 0, the second index 1, and so on. When calculating the function value inside FCN, MINUIT will call FCNBase.valueOf() with the elements at their respective positions.
-
add
public void add(java.lang.String name, double val, double err, double low, double up)Add limited parameter name, value, lower bound, upper bound
-
add
public void add(java.lang.String name, double val)Add const parameter name, value
-
fix
public void fix(int index)
Fixes the specified parameter (so that the minimizer will no longer vary it)
-
release
public void release(int index)
Releases the specified parameter (so that the minimizer can vary it)
-
setValue
public void setValue(int index, double val)Set the value of parameter. The parameter in question may be variable, fixed, or constant, but must be defined.
-
setError
public void setError(int index, double err)
-
setLimits
public void setLimits(int index, double low, double up)Set the lower and upper bound on the specified variable.
-
setUpperLimit
public void setUpperLimit(int index, double up)
-
setLowerLimit
public void setLowerLimit(int index, double low)
-
removeLimits
public void removeLimits(int index)
-
value
public double value(int index)
-
error
public double error(int index)
-
fix
public void fix(java.lang.String name)
Fixes the specified parameter (so that the minimizer will no longer vary it)
-
release
public void release(java.lang.String name)
Releases the specified parameter (so that the minimizer can vary it)
-
setValue
public void setValue(java.lang.String name, double val)Set the value of parameter. The parameter in question may be variable, fixed, or constant, but must be defined.
-
setError
public void setError(java.lang.String name, double err)
-
setLimits
public void setLimits(java.lang.String name, double low, double up)Set the lower and upper bound on the specified variable.
-
setUpperLimit
public void setUpperLimit(java.lang.String name, double up)
-
setLowerLimit
public void setLowerLimit(java.lang.String name, double low)
-
removeLimits
public void removeLimits(java.lang.String name)
-
value
public double value(java.lang.String name)
-
error
public double error(java.lang.String name)
-
precision
public MnMachinePrecision precision()
-
setPrecision
public void setPrecision(double eps)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-
DMelt 3.0 © DataMelt by jWork.ORG