Class BracketFinder


  • public class BracketFinder
    extends java.lang.Object
    Provide an interval that brackets a local optimum of a function. This code is based on a Python implementation (from SciPy, module optimize.py v0.5).
    Since:
    2.2
    Version:
    $Revision$ $Date$
    • Constructor Detail

      • BracketFinder

        public BracketFinder()
        Constructor with default values 100, 50 (see the other constructor).
      • BracketFinder

        public BracketFinder​(double growLimit,
                             int maxIterations)
        Create a bracketing interval finder.
        Parameters:
        growLimit - Expanding factor.
        maxIterations - Maximum number of iterations allowed for finding a bracketing interval.
    • Method Detail

      • getIterations

        public int getIterations()
        Returns:
        the number of iterations.
      • getEvaluations

        public int getEvaluations()
        Returns:
        the number of evaluations.
      • getLo

        public double getLo()
        Returns:
        the lower bound of the bracket.
        See Also:
        getFLow()
      • getFLow

        public double getFLow()
        Get function value at getLo().
        Returns:
        function value at getLo()
      • getHi

        public double getHi()
        Returns:
        the higher bound of the bracket.
        See Also:
        getFHi()
      • getFHi

        public double getFHi()
        Get function value at getHi().
        Returns:
        function value at getHi()
      • getMid

        public double getMid()
        Returns:
        a point in the middle of the bracket.
        See Also:
        getFMid()
      • getFMid

        public double getFMid()
        Get function value at getMid().
        Returns:
        function value at getMid()