FreeHEP API
Version current

hep.aida.ref.optimizer.minuit
Class MinuitOptimizer

java.lang.Object
  extended byhep.aida.ref.optimizer.AbstractOptimizer
      extended byhep.aida.ref.optimizer.minuit.MinuitOptimizer
All Implemented Interfaces:
IOptimizer

public class MinuitOptimizer
extends AbstractOptimizer

Minuit implementation of IOptimizer

Author:
Tony Johnson, Victor Serbo, Max Turri
Source Code:
MinuitOptimizer.java

Field Summary
 
Fields inherited from class hep.aida.ref.optimizer.AbstractOptimizer
configuration, domainConstraint, function, result
 
Constructor Summary
MinuitOptimizer()
          Creates a new instance of MinuitOptimizer
 
Method Summary
 boolean acceptsConstraints()
          Check if this IOptimizer accept constraints.
 double[][] calculateContour(String parName1, String parName2, int nPoints, double nSigmas)
          Calculate the contour for two given parameters.
 boolean canCalculateContours()
          Check if this IOptimizer can calculate contours.
protected  MinuitCommands commands()
           
 void minosAnalysis()
           
 void optimize()
          Perform the optimization.
 void reset()
          Reset the function, the domain of constraints and the internal configuration.
 void setFunction(hep.aida.IFunction function)
          Set the IFunction to be optimized.
 
Methods inherited from class hep.aida.ref.optimizer.AbstractOptimizer
configuration, listVariableSettings, resetVariableSettings, result, setConfiguration, setConstraints, variableSettings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MinuitOptimizer

public MinuitOptimizer()
Creates a new instance of MinuitOptimizer

Method Detail

optimize

public void optimize()
Perform the optimization.

Specified by:
optimize in interface IOptimizer
Specified by:
optimize in class AbstractOptimizer
Returns:
true if the optimization was successfull, false otherwise.

minosAnalysis

public void minosAnalysis()

setFunction

public void setFunction(hep.aida.IFunction function)
Description copied from class: AbstractOptimizer
Set the IFunction to be optimized. When setting a function the current configuration is reset.

Specified by:
setFunction in interface IOptimizer
Overrides:
setFunction in class AbstractOptimizer
Parameters:
function - The IFunction to be optimized.
Returns:
true if the IFunction is set succesfully, false otherwise.

commands

protected MinuitCommands commands()

canCalculateContours

public boolean canCalculateContours()
Description copied from interface: IOptimizer
Check if this IOptimizer can calculate contours.

Specified by:
canCalculateContours in interface IOptimizer
Overrides:
canCalculateContours in class AbstractOptimizer

calculateContour

public double[][] calculateContour(String parName1,
                                   String parName2,
                                   int nPoints,
                                   double nSigmas)
Description copied from interface: IOptimizer
Calculate the contour for two given parameters. The number of points and the number of sigmas can also be specified.

Specified by:
calculateContour in interface IOptimizer
Overrides:
calculateContour in class AbstractOptimizer

reset

public void reset()
Description copied from class: AbstractOptimizer
Reset the function, the domain of constraints and the internal configuration.

Specified by:
reset in interface IOptimizer
Overrides:
reset in class AbstractOptimizer

acceptsConstraints

public boolean acceptsConstraints()
Description copied from interface: IOptimizer
Check if this IOptimizer accept constraints.

Specified by:
acceptsConstraints in interface IOptimizer
Overrides:
acceptsConstraints in class AbstractOptimizer

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.