Interface SampledParameter<T>
- Type Parameters:
T
- the type of the parameter
- All Known Subinterfaces:
EnumeratedParameter<T>
- All Known Implementing Classes:
Enumeration
,SampledDouble
,SampledInteger
,SampledLong
Interface for parameters that can be sampled randomly or by some sequence.
-
Method Summary
Methods inherited from interface org.moeaframework.analysis.parameter.Parameter
assignValue, encode, parse, readValue
-
Method Details
-
sample
Samples this parameter and assigns the value to the sample. The scale is a value between0.0
and1.0
, typically supplied by aSequence
, used to generate the sampled value.When converting the scale to the parameter value, implementations are expected to provide equal weighting to each possible value, so that a value does not appear more or less often than any other value.
- Parameters:
sample
- the samplescale
- value between0.0
and1.0
used to generate the sample
-