public class AccurateNoiseFilter
extends java.lang.Object
It is more accurate than the NoiseLogFilter
, because it guarantees that
at least floor(N * noise) and maximum ceil(N * noise)
events will be affected in each trace. (N being the size of the trace)
Modifier and Type | Field and Description |
---|---|
protected double |
deletionInsertionRatio |
protected double |
noise |
protected java.util.Random |
random |
Constructor and Description |
---|
AccurateNoiseFilter(double noise) |
AccurateNoiseFilter(double noise,
double deletionInsertionRatio,
long seed) |
Modifier and Type | Method and Description |
---|---|
double |
getDeletionInsertionRatio() |
double |
getNoise() |
org.deckfour.xes.model.XLog |
insertNoise(org.deckfour.xes.model.XLog log)
Inserts noise into the log in each trace.
|
void |
setDeletionInsertionRatio(double deletionInsertionRatio) |
void |
setNoise(double noise) |
protected double noise
protected double deletionInsertionRatio
protected java.util.Random random
public AccurateNoiseFilter(double noise)
public AccurateNoiseFilter(double noise, double deletionInsertionRatio, long seed)
noise
- the amount of noise between 1 (100% noise), 0 (0% noise)deletionInsertionRatio
- value between 1 (only deletion) and 0 (only insertion)seed
- the seed for the random number generatorpublic org.deckfour.xes.model.XLog insertNoise(org.deckfour.xes.model.XLog log)
log
- XLog
to insert noise into.XLog
that contains noise
with deletionInsertionRatio
ratio of deleted / inserted eventspublic double getNoise()
public void setNoise(double noise)
public double getDeletionInsertionRatio()
public void setDeletionInsertionRatio(double deletionInsertionRatio)