org.freehep.math.minuit
Class MnUserParameterState
- java.lang.Object
-
- org.freehep.math.minuit.MnUserParameterState
-
public class MnUserParameterState extends java.lang.ObjectThe class MnUserParameterState contains the MnUserParameters and the MnUserCovariance. It can be created on input by the user, or by MINUIT itself as user representable format of the result of the minimization.
-
-
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 bounddoubleedm()Returns the expected vertival distance to the minimum (EDM)doubleerror(int index)doubleerror(java.lang.String name)double[]errors()intextOfInt(int internal)voidfix(int e)voidfix(java.lang.String name)doublefval()returns the function value at the minimumbooleanhasCovariance()Returnstrueif the the state has a valid covariance,falseotherwise.booleanhasGlobalCC()intindex(java.lang.String name)convert name into external number of parameterbooleanisValid()Returnstrueif the the state is valid,falseif notjava.lang.Stringname(int index)convert external number into name of parameterintnfcn()Returns the number of function calls during the minimization.double[]params()access to parameters and errors in column-wise representationMnMachinePrecisionprecision()voidrelease(int e)voidrelease(java.lang.String name)voidremoveLimits(int e)voidremoveLimits(java.lang.String name)voidsetError(int e, double err)voidsetError(java.lang.String name, double err)voidsetLimits(int e, double low, double up)voidsetLimits(java.lang.String name, double low, double up)voidsetLowerLimit(int e, double low)voidsetLowerLimit(java.lang.String name, double low)voidsetPrecision(double eps)voidsetUpperLimit(int e, double up)voidsetUpperLimit(java.lang.String name, double up)voidsetValue(int e, double val)voidsetValue(java.lang.String name, double val)java.lang.StringtoString()doublevalue(int index)doublevalue(java.lang.String name)intvariableParameters()
-
-
-
Method Detail
-
isValid
public boolean isValid()
Returnstrueif the the state is valid,falseif not
-
hasCovariance
public boolean hasCovariance()
Returnstrueif the the state has a valid covariance,falseotherwise.
-
hasGlobalCC
public boolean hasGlobalCC()
-
fval
public double fval()
returns the function value at the minimum
-
edm
public double edm()
Returns the expected vertival distance to the minimum (EDM)
-
nfcn
public int nfcn()
Returns the number of function calls during the minimization.
-
params
public double[] params()
access to parameters and errors in column-wise representation
-
errors
public double[] errors()
-
add
public void add(java.lang.String name, double val, double err)add free parameter name, value, error
-
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 e)
-
release
public void release(int e)
-
setValue
public void setValue(int e, double val)
-
setError
public void setError(int e, double err)
-
setLimits
public void setLimits(int e, double low, double up)
-
setUpperLimit
public void setUpperLimit(int e, double up)
-
setLowerLimit
public void setLowerLimit(int e, double low)
-
removeLimits
public void removeLimits(int e)
-
value
public double value(int index)
-
error
public double error(int index)
-
fix
public void fix(java.lang.String name)
-
release
public void release(java.lang.String name)
-
setValue
public void setValue(java.lang.String name, double val)
-
setError
public void setError(java.lang.String name, double err)
-
setLimits
public void setLimits(java.lang.String name, double low, double up)
-
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)
-
index
public int index(java.lang.String name)
convert name into external number of parameter
-
name
public java.lang.String name(int index)
convert external number into name of parameter
-
extOfInt
public int extOfInt(int internal)
-
variableParameters
public int variableParameters()
-
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