Class Plot
- java.lang.Object
-
- org.processmining.plugins.stochasticpetrinet.ui.Plot
-
public class Plot extends java.lang.ObjectPlot to display the probability functions.- Author:
- Andreas Rogge-Solti
-
-
Constructor Summary
Constructors Constructor Description Plot(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(org.apache.commons.math3.distribution.RealDistribution wnd)java.lang.StringgetName()org.apache.commons.math3.distribution.RealDistributiongetTimeSpecification(int index)doublegetVal(double x)Returns the value of the weighted density functionsdoublegetXMax()doublegetXMin()doublegetYMax()voidsetUnivariateRealFunctions(java.util.Vector<org.apache.commons.math3.distribution.RealDistribution> wnds)voidsetWeight(double weight)Sets the scaling factor for the plot.intsize()
-
-
-
Method Detail
-
add
public void add(org.apache.commons.math3.distribution.RealDistribution wnd)
-
setUnivariateRealFunctions
public void setUnivariateRealFunctions(java.util.Vector<org.apache.commons.math3.distribution.RealDistribution> wnds)
-
getTimeSpecification
public org.apache.commons.math3.distribution.RealDistribution getTimeSpecification(int index)
-
size
public int size()
-
getName
public java.lang.String getName()
-
getVal
public double getVal(double x)
Returns the value of the weighted density functions- Parameters:
x-- Returns:
-
getXMax
public double getXMax()
- Returns:
- Maximum value for x at which the plot value is greater than 0, beyond that threshold, it is 0.
-
getXMin
public double getXMin()
-
getYMax
public double getYMax()
-
setWeight
public void setWeight(double weight)
Sets the scaling factor for the plot. In a process model the branch probability is the weight. It should always be between 0 and 1.- Parameters:
weight-
-
-