public class TimePredictor extends AbstractTimePredictor
ABS_ERROR_THRESHOLD, CONFIDENCE_INTERVAL, ERROR_BOUND_PERCENT, MAX_RUNS
Constructor and Description |
---|
TimePredictor(boolean useTimeConstraint)
Creates a stochastic Net predictor based on simulation that uses either the time as a constraint, or not.
|
Modifier and Type | Method and Description |
---|---|
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)
Computes some stats by running a Monte Carlo simulation of the process.
|
addAllEnabledTransitions, computeRiskToMissTargetTime, executeTransition, getConfidenceIntervalWidth, getCurrentState, getCurrentStateWithAlignment, getError, getErrorPercent, getSemantics, predict, predict, predict
public TimePredictor(boolean useTimeConstraint)
useTimeConstraint
- indicator, whether to use the elapsed time as a constraint for the simulationpublic 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)
AbstractTimePredictor
getPredictionStats
in class AbstractTimePredictor
model
- the model that is enriched by some training dataobservedEvents
- the current history of the trace (observed events so far)currentTime
- the current time at predictionuseOnlyPastTrainingData
- 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 pointDescriptiveStatistics
gathered from a set of simulated continuations of the current process