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.randomize
Class ConstRandomizer

    java.lang.Object
      org.encog.mathutil.randomize.BasicRandomizer
          org.encog.mathutil.randomize.ConstRandomizer

All Implemented Interfaces:
  Randomizer

    public class ConstRandomizer

extends BasicRandomizer

A randomizer that will create always set the random number to a const value, used mainly for testing.

Constructor Summary
`ConstRandomizer(double value)` Construct a range randomizer.

Method Summary
`double` | `randomize(double d)` Generate a random number based on the range specified in the constructor.

Methods inherited from class org.encog.mathutil.randomize.BasicRandomizer
`getRandom, nextDouble, nextDouble, randomize, randomize, randomize, randomize, randomize, randomize, setRandom`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### ConstRandomizer

    public ConstRandomizer(double value)

  Construct a range randomizer.

  Parameters:
    `value` - The constant value.

Method Detail

### randomize

    public double randomize(double d)

  Generate a random number based on the range specified in the constructor.

  Parameters:
    `d` - The range randomizer ignores this value.
  Returns:
    The random number.

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.