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 |
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, setSeed |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Distort
public Distort(double factor)
- Construct a distort randomizer for the specified factor.
- Parameters:
factor
- The randomizer factor.
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.