org.encog.mathutil.randomize

## Class Distort

- java.lang.Object
- - org.encog.mathutil.randomize.BasicRandomizer
  - - org.encog.mathutil.randomize.Distort

- All Implemented Interfaces:
    Randomizer

      public class Distort
      extends BasicRandomizer

  A randomizer that distorts what is already present in the neural network.
  Author:
    jheaton

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Distort(double factor)` Construct a distort randomizer for the specified factor.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `double` | `randomize(double d)` Distort the random number by the factor that was 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

    - #### Distort

          public Distort(double factor)

      Construct a distort randomizer for the specified factor.
      Parameters:
        `factor` - The randomizer factor.

  - ### Method Detail

    - #### randomize

          public double randomize(double d)

      Distort the random number by the factor that was specified in the constructor.
      Parameters:
        `d` - The number to distort.
      Returns:
        The result.

Copyright © 2014. All Rights Reserved.