Class NoiseLogFilter


  • public class NoiseLogFilter
    extends java.lang.Object
    Introduces noise into an event log by randomly removing items, or adding duplicate events. It maintains the condition, that always at least one event remains in the trace.
    Author:
    Ronny Mans, Andreas Rogge-Solti
    • Field Detail

      • selectedNoisePercentageAdd

        protected float selectedNoisePercentageAdd
      • selectedNoisePercentageRemove

        protected float selectedNoisePercentageRemove
      • random

        protected java.util.Random random
    • Constructor Detail

      • NoiseLogFilter

        public NoiseLogFilter()
      • NoiseLogFilter

        public NoiseLogFilter​(long seed)
    • Method Detail

      • timeStampInjection

        public org.deckfour.xes.model.XLog timeStampInjection​(org.processmining.contexts.uitopia.UIPluginContext context,
                                                              org.deckfour.xes.model.XLog oldLog)
                                                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • setPercentageAdd

        public void setPercentageAdd​(java.lang.Integer addPercentage)
        Parameters:
        addPercentage - noise level to add in percentage (duplication of events)
      • setPercentageRemove

        public void setPercentageRemove​(java.lang.Integer removePercentage)
        Parameters:
        removePercentage - chance to remove events from log in percentage
      • introduceNoise

        public org.deckfour.xes.model.XLog introduceNoise​(org.processmining.framework.plugin.PluginContext context,
                                                          org.deckfour.xes.model.XLog log)
      • adjustTimeStampOfNewEvent

        public void adjustTimeStampOfNewEvent​(java.util.Random r,
                                              org.deckfour.xes.extension.std.XTimeExtension xTime,
                                              org.processmining.framework.util.Pair<java.lang.Long,​java.lang.Long> traceBounds,
                                              org.deckfour.xes.model.XEvent duplicatedEvent)
                                       throws java.lang.Exception
        Throws:
        java.lang.Exception