Class RealDistributionComparison

java.lang.Object
org.hipparchus.samples.RealDistributionComparison

public class RealDistributionComparison extends Object
Displays pdf/cdf for real distributions.
  • Method Details

    • addPDFSeries

      public static void addPDFSeries(com.xeiam.xchart.Chart chart, RealDistribution distribution, String desc, int lowerBound, int upperBound)
      Add a PDF series.
      Parameters:
      chart - chart to which series must be added
      distribution - integer distribution to draw
      desc - description
      lowerBound - lower bound
      upperBound - upper bound
    • addCDFSeries

      public static void addCDFSeries(com.xeiam.xchart.Chart chart, RealDistribution distribution, String desc, int lowerBound, int upperBound)
      Add a CDF series.
      Parameters:
      chart - chart to which series must be added
      distribution - integer distribution to draw
      desc - description
      lowerBound - lower bound
      upperBound - upper bound
    • createChart

      public static com.xeiam.xchart.Chart createChart(String title, int minX, int maxX, com.xeiam.xchart.StyleManager.LegendPosition position)
      Create a chart.
      Parameters:
      title - chart title
      minX - minimum abscissa
      maxX - maximum abscissa
      position - position of the legend
      Returns:
      created chart
    • createComponent

      public static JComponent createComponent(String distributionName, int minX, int maxX, String[] seriesText, RealDistribution... series)
      Create a component.
      Parameters:
      distributionName - name of the distribution
      minX - minimum abscissa
      maxX - maximum abscissa
      seriesText - descriptions of the series
      series - series
      Returns:
      create component
    • main

      public static void main(String[] args)
      Program entry point.
      Parameters:
      args - program arguments (unused here)