public class MnUserParameters extends Object
Constructor and Description |
---|
MnUserParameters()
Creates a new instance of MnUserParameters
|
MnUserParameters(double[] par,
double[] err) |
Modifier and Type | Method and Description |
---|---|
void |
add(String name,
double val)
Add const parameter name, value
|
void |
add(String name,
double val,
double err)
Add free parameter name, value, error
|
void |
add(String name,
double val,
double err,
double low,
double up)
Add limited parameter name, value, lower bound, upper bound
|
double |
error(int index) |
double |
error(String name) |
void |
fix(int index)
Fixes the specified parameter (so that the minimizer will no longer vary it)
|
void |
fix(String name)
Fixes the specified parameter (so that the minimizer will no longer vary it)
|
MnMachinePrecision |
precision() |
void |
release(int index)
Releases the specified parameter (so that the minimizer can vary it)
|
void |
release(String name)
Releases the specified parameter (so that the minimizer can vary it)
|
void |
removeLimits(int index) |
void |
removeLimits(String name) |
void |
setError(int index,
double err) |
void |
setError(String name,
double err) |
void |
setLimits(int index,
double low,
double up)
Set the lower and upper bound on the specified variable.
|
void |
setLimits(String name,
double low,
double up)
Set the lower and upper bound on the specified variable.
|
void |
setLowerLimit(int index,
double low) |
void |
setLowerLimit(String name,
double low) |
void |
setPrecision(double eps) |
void |
setUpperLimit(int index,
double up) |
void |
setUpperLimit(String name,
double up) |
void |
setValue(int index,
double val)
Set the value of parameter.
|
void |
setValue(String name,
double val)
Set the value of parameter.
|
String |
toString() |
double |
value(int index) |
double |
value(String name) |
int |
variableParameters() |
public MnUserParameters()
public MnUserParameters(double[] par, double[] err)
public int variableParameters()
public void add(String name, double val, double err)
When 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.
public void add(String name, double val, double err, double low, double up)
public void add(String name, double val)
public void fix(int index)
public void release(int index)
public void setValue(int index, double val)
public void setError(int index, double err)
public void setLimits(int index, double low, double up)
public void setUpperLimit(int index, double up)
public void setLowerLimit(int index, double low)
public void removeLimits(int index)
public double value(int index)
public double error(int index)
public void fix(String name)
public void release(String name)
public void setValue(String name, double val)
public void setError(String name, double err)
public void setLimits(String name, double low, double up)
public void setUpperLimit(String name, double up)
public void setLowerLimit(String name, double low)
public void removeLimits(String name)
public double value(String name)
public double error(String name)
public MnMachinePrecision precision()
public void setPrecision(double eps)
Jas4pp 1.5 © Java Analysis Studio for Particle Physics