Class Plot


  • public class Plot
    extends java.lang.Object
    Plot 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
      void add​(org.apache.commons.math3.distribution.RealDistribution wnd)  
      java.lang.String getName()  
      org.apache.commons.math3.distribution.RealDistribution getTimeSpecification​(int index)  
      double getVal​(double x)
      Returns the value of the weighted density functions
      double getXMax()  
      double getXMin()  
      double getYMax()  
      void setUnivariateRealFunctions​(java.util.Vector<org.apache.commons.math3.distribution.RealDistribution> wnds)  
      void setWeight​(double weight)
      Sets the scaling factor for the plot.
      int size()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Plot

        public Plot​(java.lang.String name)
    • 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 -