|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object hep.aida.ref.optimizer.AbstractOptimizer
Abstract implementation of IOptimizer
Field Summary | |
protected IOptimizerConfiguration |
configuration
|
protected IDomainConstraint |
domainConstraint
|
protected hep.aida.IFunction |
function
|
protected OptimizerResult |
result
|
Constructor Summary | |
AbstractOptimizer()
Creates a new instance of AbstractOptimizer |
Method Summary | |
boolean |
acceptsConstraints()
Check if this IOptimizer accept constraints. |
double[][] |
calculateContour(String par1,
String par2,
int npts,
double nSigmas)
Calculate the contour for two given parameters. |
boolean |
canCalculateContours()
Check if this IOptimizer can calculate contours. |
IOptimizerConfiguration |
configuration()
Get the IOptimizer configuration |
String[] |
listVariableSettings()
Get the list of the names of the IVariableSettings defined. |
abstract void |
optimize()
Perform the optimization. |
void |
reset()
Reset the function, the domain of constraints and the internal configuration. |
void |
resetVariableSettings()
Reset all variable settings. |
IOptimizerResult |
result()
Get the optimization results. |
void |
setConfiguration(IOptimizerConfiguration configuration)
Set the internal configuration of the Optimizer. |
void |
setConstraints(IDomainConstraint iDomainConstraint)
Set the domain of constraints for the IOptimizer. |
void |
setFunction(hep.aida.IFunction iFunction)
Set the IFunction to be optimized. |
IVariableSettings |
variableSettings(String name)
Get the IVariableSettings corresponding to a give variable. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected hep.aida.IFunction function
protected OptimizerResult result
protected IOptimizerConfiguration configuration
protected IDomainConstraint domainConstraint
Constructor Detail |
public AbstractOptimizer()
Method Detail |
public IOptimizerConfiguration configuration()
configuration
in interface IOptimizer
public abstract void optimize()
optimize
in interface IOptimizer
true
if the optimization was
successfull, false
otherwise.public void reset()
reset
in interface IOptimizer
public IOptimizerResult result()
result
in interface IOptimizer
public void setConfiguration(IOptimizerConfiguration configuration)
setConfiguration
in interface IOptimizer
configuration
- The configuration.
true
if the configuration was set succesfully,
false
otherwise.public void setConstraints(IDomainConstraint iDomainConstraint)
setConstraints
in interface IOptimizer
iDomainConstraint
- The domain of constraints.
true
if the IDomainConstraint is set succesfully,
false
otherwise.public void setFunction(hep.aida.IFunction iFunction)
setFunction
in interface IOptimizer
iFunction
- The IFunction to be optimized.
true
if the IFunction is set succesfully,
false
otherwise.public String[] listVariableSettings()
IOptimizer
listVariableSettings
in interface IOptimizer
public void resetVariableSettings()
IOptimizer
resetVariableSettings
in interface IOptimizer
public IVariableSettings variableSettings(String name)
IOptimizer
variableSettings
in interface IOptimizer
name
- The variable's name.
public boolean acceptsConstraints()
IOptimizer
acceptsConstraints
in interface IOptimizer
true
if the IOptimizer accepts contraints.
false
otherwise.public boolean canCalculateContours()
IOptimizer
canCalculateContours
in interface IOptimizer
true
if the IOptimizer can calculate contours.
false
otherwise.public double[][] calculateContour(String par1, String par2, int npts, double nSigmas)
IOptimizer
calculateContour
in interface IOptimizer
par1
- The name of the first parameter.par2
- The name of the second parameter.npts
- The number of points on the contour.nSigmas
- The number of sigmas for this contour.
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |