#include <cauchy.h>

Public Member Functions | |
| cauchy_distribution (double location=1.0, double scale=1.0) | |
| double | cdf (double x) const |
| double | inverse_cdf (double p) const |
| double | median () const |
| void | median (double m) |
| double | scale () const |
| void | scale (double s) |
References:
| NUM_NAMESPACE_BEGIN cauchy_distribution::cauchy_distribution | ( | double | m = 1.0, |
|
| double | s = 1.0 | |||
| ) |
Create a distribution with the given location and scale values.
| location | the location parameter. | |
| scale | the scale parameter. |
| m | the location parameter. | |
| s | the scale parameter. |
| double cauchy_distribution::cdf | ( | double | x | ) | const [virtual] |
The CDF for this distribution. This method returns P(X < x).
| x | the value at which the CDF is evaluated. |
Implements continuous_distribution.
| double cauchy_distribution::inverse_cdf | ( | double | p | ) | const [virtual] |
The inverse CDF for this distribution. This method returns x such that, P(X < x) = p.
| p | the cumulative probability. |
Implements continuous_distribution.
| double cauchy_distribution::median | ( | ) | const |
Access the location parameter.
| void cauchy_distribution::median | ( | double | m | ) |
Modify the location parameter.
| m | the new location value. |
| double cauchy_distribution::scale | ( | ) | const |
Access the scale parameter.
| void cauchy_distribution::scale | ( | double | s | ) |
Modify the scale parameter.
| s | the new scale value. |
1.5.3