예제 #1
0
 /**
  * Similar to #viewCdf, but for the probability density instead of the cdf.
  *
  * @param width frame width in pixels
  * @param height frame height in pixels
  * @return frame containing the chart
  */
 public JFrame viewDensity(int width, int height) {
   return densityChart.view(width, height);
 }
예제 #2
0
 /**
  * Displays a chart of the cumulative distribution function (cdf) on the screen using Swing. This
  * method creates an application containing a chart panel displaying the chart. The created frame
  * is positioned on-screen, and displayed before it is returned. The `width` and the `height` of
  * the chart are measured in pixels.
  *
  * @param width frame width in pixels
  * @param height frame height in pixels
  * @return frame containing the chart
  */
 public JFrame viewCdf(int width, int height) {
   return cdfChart.view(width, height);
 }