Class OptVar

    • Field Detail

      • m_name

        public String m_name
        This variable's name.
      • m_max

        public double m_max
        Maximum value this variable can assume.
      • m_min

        public double m_min
        Minimum value this variable can assume.
      • m_isInteger

        public boolean m_isInteger
        Can this variable only have integer values?
    • Constructor Detail

      • OptVar

        public OptVar​(String name,
                      double min,
                      double max,
                      boolean isInteger)
        Initialise.
        Parameters:
        name - var name.
        min - var min.
        max - var max.
        isInteger - var is an integer only?
      • OptVar

        public OptVar​(String name,
                      double min,
                      double max)
        Initialise.
        Parameters:
        name - var name.
        min - var min.
        max - var max.
    • Method Detail

      • getSteps

        public int getSteps​(int numSplits)
        Get number of splits. Recalc if int.
        Parameters:
        numSplits - number of initial splits
        Returns:
        number of recalculated splits
      • getStepSize

        public double getStepSize​(int numSplits)
        Get step size. Recalc for int.
        Parameters:
        numSplits - number of initial splits
        Returns:
        splits recalc