edu.northwestern.at.utils.math.rootfinders

## Class BracketRoot

- java.lang.Object
- - edu.northwestern.at.utils.math.rootfinders.BracketRoot

-     public class BracketRoot
      extends java.lang.Object

  Find interval bracketing a root.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `BracketRoot()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static boolean` | `bracketRoot(double[] bracket, MonadicFunction function, int maxIter, double expansionFactor)` Find interval bracketing a root.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### BracketRoot

          public BracketRoot()

  - ### Method Detail

    - #### bracketRoot

          public static boolean bracketRoot(double[] bracket,
                            MonadicFunction function,
                            int maxIter,
                            double expansionFactor)

      Find interval bracketing a root.
      Parameters:
        `bracket` - Array containing initial estimate for of bracketing interval. bracket[0] is left hand estimate. bracket[1] is right hand estimate.
        `function` - Function whose root is to be bracketed.
        `maxIter` - Maximum number of iterations to try expanding bracket.
        `expansionFactor` - Factor by which to expand bracket interval on each iteration.
      Returns:
        True if bracket successfully found The new bracket will be placed in "bracket". False if bracket could not be found within maxIter attempts.