org.encog.mathutil

## Class BoundNumbers

- java.lang.Object
- - org.encog.mathutil.BoundNumbers

-     public final class BoundNumbers
      extends Object

  A simple class that prevents numbers from getting either too big or too small.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static double` | `TOO_BIG` Too big of a number.
    `static double` | `TOO_SMALL` Too small of a number.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static double` | `bound(double d)` Bound the number so that it does not become too big or too small.

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

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

- - ### Field Detail

    - #### TOO_SMALL

          public static final double TOO_SMALL

      Too small of a number.
      See Also:
        Constant Field Values

    - #### TOO_BIG

          public static final double TOO_BIG

      Too big of a number.
      See Also:
        Constant Field Values

  - ### Method Detail

    - #### bound

          public static double bound(double d)

      Bound the number so that it does not become too big or too small.
      Parameters:
        `d` - The number to check.
      Returns:
        The new number. Only changed if it was too big or too small.

Copyright © 2014. All Rights Reserved.