Class Parameter

java.lang.Object
org.moeaframework.analysis.io.Parameter

public class Parameter extends Object
Defines a parameter.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Parameter(String name, double lowerBound, double upperBound)
    Constructs a new parameter with the specified name, lower bound, and upper bound.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Returns the lower bound of this parameter.
    Returns the name of this parameter.
    double
    Returns the upper bound of this parameter.
    double
    scale(double sample)
    Scales a value sampled between [0, 1] to the range [lowerBound, upperBound].

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Parameter

      public Parameter(String name, double lowerBound, double upperBound)
      Constructs a new parameter with the specified name, lower bound, and upper bound.
      Parameters:
      name - the parameter name
      lowerBound - the lower bound of the parameter
      upperBound - the upper bound of the parameter
  • Method Details

    • getName

      public String getName()
      Returns the name of this parameter.
      Returns:
      the name of this parameter.
    • getLowerBound

      public double getLowerBound()
      Returns the lower bound of this parameter.
      Returns:
      the lower bound of this parameter
    • getUpperBound

      public double getUpperBound()
      Returns the upper bound of this parameter.
      Returns:
      the upper bound of this parameter
    • scale

      public double scale(double sample)
      Scales a value sampled between [0, 1] to the range [lowerBound, upperBound].
      Parameters:
      sample - the sampled value between [0, 1]
      Returns:
      the scaled value between the lower and upper bounds