public class ContinuousDistChart
extends java.lang.Object
| Constructor and Description |
|---|
ContinuousDistChart(ContinuousDistribution dist,
double a,
double b,
int m)
Constructor for a new ContinuousDistChart instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setParam(double a,
double b,
int m)
Sets the parameters a, b and m for this object.
|
java.lang.String |
toLatexCdf(int width,
int height)
Exports a chart of the cdf to a LATEX source code using PGF/TikZ.
|
java.lang.String |
toLatexDensity(int width,
int height)
Similar to
toLatexCdf, but for the probability density instead
of the cdf. |
javax.swing.JFrame |
viewCdf(int width,
int height)
Displays a chart of the cumulative distribution function (cdf) on the screen
using Swing.
|
javax.swing.JFrame |
viewDensity(int width,
int height)
Similar to
viewCdf, but for the probability density instead
of the cdf. |
public ContinuousDistChart(ContinuousDistribution dist, double a, double b, int m)
dist - continuous distribution to plota - lower bound of intervalb - upper bound of intervalm - number of stepspublic javax.swing.JFrame viewCdf(int width,
int height)
width - frame width in pixelsheight - frame height in pixelspublic javax.swing.JFrame viewDensity(int width,
int height)
viewCdf, but for the probability density instead
of the cdf.width - frame width in pixelsheight - frame height in pixelspublic java.lang.String toLatexCdf(int width,
int height)
width - Chart's width in centimetersheight - Chart's height in centimeterspublic java.lang.String toLatexDensity(int width,
int height)
toLatexCdf, but for the probability density instead
of the cdf.width - Chart's width in centimetersheight - Chart's height in centimeterspublic void setParam(double a,
double b,
int m)
a - lower bound of intervalb - upper bound of intervalm - number of points in the plot minus oneTo submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.