org.encog.mathutil.randomize
Class Distort

java.lang.Object
  extended by org.encog.mathutil.randomize.BasicRandomizer
      extended by 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
Distort(double factor)
          Construct a distort randomizer for the specified factor.
 
Method Summary
 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 © 2011. All Rights Reserved.