Interface SampledParameter<T>

Type Parameters:
T - the type of the parameter
All Superinterfaces:
Named, Parameter<T>
All Known Subinterfaces:
EnumeratedParameter<T>
All Known Implementing Classes:
Enumeration, SampledDouble, SampledInteger, SampledLong

public interface SampledParameter<T> extends Parameter<T>
Interface for parameters that can be sampled randomly or by some sequence.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    sample(Sample sample, double scale)
    Samples this parameter and assigns the value to the sample.

    Methods inherited from interface org.moeaframework.core.Named

    getName

    Methods inherited from interface org.moeaframework.analysis.parameter.Parameter

    assignValue, encode, parse, readValue
  • Method Details

    • sample

      void sample(Sample sample, double scale)
      Samples this parameter and assigns the value to the sample. The scale is a value between 0.0 and 1.0, typically supplied by a Sequence, 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 sample
      scale - value between 0.0 and 1.0 used to generate the sample