|
SSJ V. 2.6. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object umontreal.iro.lecuyer.charts.ContinuousDistChart
public class ContinuousDistChart
This class provides tools to plot the density and the cumulative probability of a continuous probability distribution.
Constructor Summary | |
---|---|
ContinuousDistChart(ContinuousDistribution dist,
double a,
double b,
int m)
Constructor for a new ContinuousDistChart instance. |
Method Summary | |
---|---|
void |
setParam(double a,
double b,
int m)
Sets the parameters a, b and m for this object. |
String |
toLatexCdf(int width,
int height)
Exports a chart of the cdf to a LATEX source code using PGF/TikZ. |
String |
toLatexDensity(int width,
int height)
Similar to toLatexCdf , but for the probability density instead
of the cdf. |
JFrame |
viewCdf(int width,
int height)
Displays a chart of the cumulative distribution function (cdf) on the screen using Swing. |
JFrame |
viewDensity(int width,
int height)
Similar to viewCdf , but for the probability density instead
of the cdf. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 stepsMethod Detail |
---|
public JFrame viewCdf(int width, int height)
width
- frame width in pixelsheight
- frame height in pixels
public JFrame viewDensity(int width, int height)
viewCdf
, but for the probability density instead
of the cdf.
width
- frame width in pixelsheight
- frame height in pixels
public String toLatexCdf(int width, int height)
width
- Chart's width in centimetersheight
- Chart's height in centimeters
public 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 centimeters
public void setParam(double a, double b, int m)
a
- lower bound of intervalb
- upper bound of intervalm
- number of points in the plot minus one
|
SSJ V. 2.6. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |