Class OptimalMiner<M>

  • Direct Known Subclasses:
    LocalSearchMiner

    public abstract class OptimalMiner<M>
    extends java.lang.Object
    • Field Detail

      • origLog

        protected final org.deckfour.xes.model.XLog origLog
      • origModel

        protected final M origModel
      • currentDistance

        protected Distance currentDistance
      • bestDistance

        protected double bestDistance
      • bestLog

        protected org.deckfour.xes.model.XLog bestLog
      • bestModel

        protected M bestModel
      • currentLog

        protected org.deckfour.xes.model.XLog currentLog
      • currentModel

        protected M currentModel
      • context

        protected org.processmining.framework.plugin.PluginContext context
    • Constructor Detail

      • OptimalMiner

        public OptimalMiner​(DistanceFunction function,
                            org.processmining.framework.plugin.PluginContext context,
                            org.deckfour.xes.model.XLog log,
                            M model)
    • Method Detail

      • computeDistance

        protected abstract Distance computeDistance​(org.deckfour.xes.model.XLog log,
                                                    M model)
        Computes the distance between a log and a model Subclasses need to implement this according to their model type. Ideally, this is a fast step.
        Parameters:
        log - the log to compare with the model
        model - the model to compare with the log
        Returns:
        Distance
      • getBestLog

        public org.deckfour.xes.model.XLog getBestLog()
      • getBestModel

        public M getBestModel()
      • searchForBetterLogAndModel

        public void searchForBetterLogAndModel()
      • performSearch

        protected abstract void performSearch()
        Tries to find a log-model pair that is best in terms of a score