| Constructor and Description |
|---|
StaticNoise(double p,
java.util.Random random)
Construct a StaticNoise object that will flip bits with some probability.
|
| Modifier and Type | Method and Description |
|---|---|
AKSpeak |
applyNoise(AKSpeak message)
Optionally apply some noise to a message and return either the original message or a replacement.
|
public StaticNoise(double p,
java.util.Random random)
p - The probability of flipping a bit.random - The RNG to use.public AKSpeak applyNoise(AKSpeak message)
NoiseapplyNoise in interface Noisemessage - The message to tinker with.