Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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
`static double` | `TOO_BIG` Too big of a number.
`static double` | `TOO_SMALL` Too small of a number.

Method Summary
`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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2011. All Rights Reserved.