|
FreeHEP API Version current |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthep.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 IOptimizerpublic abstract void optimize()
optimize in interface IOptimizertrue if the optimization was
successfull, false otherwise.public void reset()
reset in interface IOptimizerpublic IOptimizerResult result()
result in interface IOptimizerpublic void setConfiguration(IOptimizerConfiguration configuration)
setConfiguration in interface IOptimizerconfiguration - The configuration.
true if the configuration was set succesfully,
false otherwise.public void setConstraints(IDomainConstraint iDomainConstraint)
setConstraints in interface IOptimizeriDomainConstraint - The domain of constraints.
true if the IDomainConstraint is set succesfully,
false otherwise.public void setFunction(hep.aida.IFunction iFunction)
setFunction in interface IOptimizeriFunction - The IFunction to be optimized.
true if the IFunction is set succesfully,
false otherwise.public String[] listVariableSettings()
IOptimizer
listVariableSettings in interface IOptimizerpublic void resetVariableSettings()
IOptimizer
resetVariableSettings in interface IOptimizerpublic IVariableSettings variableSettings(String name)
IOptimizer
variableSettings in interface IOptimizername - The variable's name.
public boolean acceptsConstraints()
IOptimizer
acceptsConstraints in interface IOptimizertrue if the IOptimizer accepts contraints.
false otherwise.public boolean canCalculateContours()
IOptimizer
canCalculateContours in interface IOptimizertrue if the IOptimizer can calculate contours.
false otherwise.
public double[][] calculateContour(String par1,
String par2,
int npts,
double nSigmas)
IOptimizer
calculateContour in interface IOptimizerpar1 - 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 | |||||||||