Class TimePredictor

    • Constructor Detail

      • TimePredictor

        public TimePredictor​(boolean useTimeConstraint)
        Creates a stochastic Net predictor based on simulation that uses either the time as a constraint, or not.
        Parameters:
        useTimeConstraint - indicator, whether to use the elapsed time as a constraint for the simulation
    • Method Detail

      • getPredictionStats

        public org.apache.commons.math3.stat.descriptive.DescriptiveStatistics getPredictionStats​(StochasticNet model,
                                                                                                  org.deckfour.xes.model.XTrace observedEvents,
                                                                                                  java.util.Date currentTime,
                                                                                                  boolean useOnlyPastTrainingData,
                                                                                                  org.processmining.models.semantics.Semantics<org.processmining.models.semantics.petrinet.Marking,​org.processmining.models.graphbased.directed.petrinet.elements.Transition> semantics)
        Description copied from class: AbstractTimePredictor
        Computes some stats by running a Monte Carlo simulation of the process.
        Specified by:
        getPredictionStats in class AbstractTimePredictor
        Parameters:
        model - the model that is enriched by some training data
        observedEvents - the current history of the trace (observed events so far)
        currentTime - the current time at prediction
        useOnlyPastTrainingData - indicator that tells us whether to only rely on training data that was observed in the past (relative to the currentTime)
        semantics - the semantics with the current marking of the model that shows the starting point
        Returns:
        DescriptiveStatistics gathered from a set of simulated continuations of the current process