Class ScalarProposer
Object
org.anchoranalysis.bean.AnchorBean<B>
org.anchoranalysis.bean.initializable.InitializableBean<T,NullInitialization>
org.anchoranalysis.bean.NullParametersBean<ScalarProposer>
org.anchoranalysis.mpp.bean.proposer.ScalarProposer
public abstract class ScalarProposer extends NullParametersBean<ScalarProposer>
An abstract base class for proposing scalar values.
-
Constructor Summary
Constructors Constructor Description ScalarProposer() -
Method Summary
Modifier and Type Method Description abstract doublepropose(RandomNumberGenerator randomNumberGenerator, Optional<Resolution> resolution)Proposes a scalar value based on the given parameters.Methods inherited from class org.anchoranalysis.bean.NullParametersBean
initializeRecursive, onInitialization, onInitializationMethods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitializedMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
ScalarProposer
public ScalarProposer()
-
-
Method Details
-
propose
public abstract double propose(RandomNumberGenerator randomNumberGenerator, Optional<Resolution> resolution) throws OperationFailedExceptionProposes a scalar value based on the given parameters.- Parameters:
randomNumberGenerator- a random number generator for any stochastic processesresolution- an optional resolution to consider when proposing the scalar value- Returns:
- the proposed scalar value as a double
- Throws:
OperationFailedException- if the proposal operation fails
-