Constructor and Description |
---|
DropoutNoise(double p,
java.util.Random random)
Construct a DropoutNoise object that will wipe out messages 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 DropoutNoise(double p, java.util.Random random)
p
- The probability of destroying a message.random
- The RNG to use.public AKSpeak applyNoise(AKSpeak message)
Noise
applyNoise
in interface Noise
message
- The message to tinker with.