org.freehep.math.minuit
Class MnUserParameterState

java.lang.Object
  extended by org.freehep.math.minuit.MnUserParameterState

public class MnUserParameterState
extends Object

The 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.

Version:
$Id: MnUserParameterState.java 8584 2006-08-10 23:06:37Z duns $

Method Summary
 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
protected  MnUserParameterState clone()
           
 double edm()
          Returns the expected vertival distance to the minimum (EDM)
 double error(int index)
           
 double error(String name)
           
 double[] errors()
           
 int extOfInt(int internal)
           
 void fix(int e)
           
 void fix(String name)
           
 double fval()
          returns the function value at the minimum
 boolean hasCovariance()
          Returns true if the the state has a valid covariance, false otherwise.
 boolean hasGlobalCC()
           
 int index(String name)
          convert name into external number of parameter
 boolean isValid()
          Returns true if the the state is valid, false if not
 String name(int index)
          convert external number into name of parameter
 int nfcn()
          Returns the number of function calls during the minimization.
 double[] params()
          access to parameters and errors in column-wise representation
 MnMachinePrecision precision()
           
 void release(int e)
           
 void release(String name)
           
 void removeLimits(int e)
           
 void removeLimits(String name)
           
 void setError(int e, double err)
           
 void setError(String name, double err)
           
 void setLimits(int e, double low, double up)
           
 void setLimits(String name, double low, double up)
           
 void setLowerLimit(int e, double low)
           
 void setLowerLimit(String name, double low)
           
 void setPrecision(double eps)
           
 void setUpperLimit(int e, double up)
           
 void setUpperLimit(String name, double up)
           
 void setValue(int e, double val)
           
 void setValue(String name, double val)
           
 String toString()
           
 double value(int index)
           
 double value(String name)
           
 int variableParameters()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

clone

protected MnUserParameterState clone()
Overrides:
clone in class Object

isValid

public boolean isValid()
Returns true if the the state is valid, false if not


hasCovariance

public boolean hasCovariance()
Returns true if the the state has a valid covariance, false otherwise.


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(String name,
                double val,
                double err)
add free parameter name, value, error


add

public void add(String name,
                double val,
                double err,
                double low,
                double up)
add limited parameter name, value, lower bound, upper bound


add

public void add(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(String name)

release

public void release(String name)

setValue

public void setValue(String name,
                     double val)

setError

public void setError(String name,
                     double err)

setLimits

public void setLimits(String name,
                      double low,
                      double up)

setUpperLimit

public void setUpperLimit(String name,
                          double up)

setLowerLimit

public void setLowerLimit(String name,
                          double low)

removeLimits

public void removeLimits(String name)

value

public double value(String name)

error

public double error(String name)

index

public int index(String name)
convert name into external number of parameter


name

public 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 String toString()
Overrides:
toString in class Object


Copyright © 2000-2006 FreeHEP. All Rights Reserved.