Class AccurateNoiseFilter
- java.lang.Object
-
- org.processmining.plugins.filter.noise.AccurateNoiseFilter
-
public class AccurateNoiseFilter extends java.lang.ObjectThis noise filter adds noise to an event log by randomly removing events and adding events.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)- Author:
- Andreas Rogge-Solti
-
-
Field Summary
Fields Modifier and Type Field Description protected doubledeletionInsertionRatioprotected doublenoiseprotected java.util.Randomrandom
-
Constructor Summary
Constructors Constructor Description AccurateNoiseFilter(double noise)AccurateNoiseFilter(double noise, double deletionInsertionRatio, long seed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetDeletionInsertionRatio()doublegetNoise()org.deckfour.xes.model.XLoginsertNoise(org.deckfour.xes.model.XLog log)Inserts noise into the log in each trace.voidsetDeletionInsertionRatio(double deletionInsertionRatio)voidsetNoise(double noise)
-
-
-
Constructor Detail
-
AccurateNoiseFilter
public AccurateNoiseFilter(double noise)
-
AccurateNoiseFilter
public AccurateNoiseFilter(double noise, double deletionInsertionRatio, long seed)- Parameters:
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 generator
-
-
Method Detail
-
insertNoise
public org.deckfour.xes.model.XLog insertNoise(org.deckfour.xes.model.XLog log)
Inserts noise into the log in each trace.- Parameters:
log-XLogto insert noise into.- Returns:
- a
XLogthat containsnoisewithdeletionInsertionRatioratio of deleted / inserted events
-
getNoise
public double getNoise()
-
setNoise
public void setNoise(double noise)
-
getDeletionInsertionRatio
public double getDeletionInsertionRatio()
-
setDeletionInsertionRatio
public void setDeletionInsertionRatio(double deletionInsertionRatio)
-
-