Extends the class ContinuousDistribution for the hyperbolic secant distribution with location parameter \(\mu\) and scale parameter. More...
Public Member Functions | |
| HyperbolicSecantDist (double mu, double sigma) | |
| Constructs a hyperbolic secant distribution with parameters. | |
| double | density (double x) |
| Returns \(f(x)\), the density evaluated at \(x\). | |
| double | cdf (double x) |
| Returns the distribution function \(F(x)\). | |
| double | barF (double x) |
| Returns the complementary distribution function. | |
| double | inverseF (double u) |
| Returns the inverse distribution function \(x = F^{-1}(u)\). | |
| double | getMean () |
| Returns the mean. | |
| double | getVariance () |
| Returns the variance. | |
| double | getStandardDeviation () |
| Returns the standard deviation. | |
| double | getMu () |
| Returns the parameter \(\mu\) of this object. | |
| double | getSigma () |
| Returns the parameter \(\sigma\) of this object. | |
| void | setParams (double mu, double sigma) |
| Sets the parameters \(\mu\) and \(\sigma\) of this object. | |
| double[] | getParams () |
| Return a table containing the parameters of the current distribution. | |
| String | toString () |
| Returns a String containing information about the current distribution. | |
| Public Member Functions inherited from umontreal.ssj.probdist.ContinuousDistribution | |
| double | inverseBrent (double a, double b, double u, double tol) |
| Computes the inverse distribution function \(x = F^{-1}(u)\), using the Brent-Dekker method. | |
| double | inverseBisection (double u) |
| Computes and returns the inverse distribution function \(x = F^{-1}(u)\), using bisection. | |
| double | getXinf () |
| Returns \(x_a\) such that the probability density is 0 everywhere outside the interval \([x_a, x_b]\). | |
| double | getXsup () |
| Returns \(x_b\) such that the probability density is 0 everywhere outside the interval \([x_a, x_b]\). | |
| void | setXinf (double xa) |
| Sets the value \(x_a=\) xa, such that the probability density is 0 everywhere outside the interval \([x_a, x_b]\). | |
| void | setXsup (double xb) |
| Sets the value \(x_b=\) xb, such that the probability density is 0 everywhere outside the interval \([x_a, x_b]\). | |
Static Public Member Functions | |
| static double | density (double mu, double sigma, double x) |
Computes the density function ( fHyperbolicSecant ) for a hyperbolic secant distribution with parameters. | |
| static double | cdf (double mu, double sigma, double x) |
| Computes the distribution function of the hyperbolic secant distribution with parameters \(\mu\) and \(\sigma\). | |
| static double | barF (double mu, double sigma, double x) |
| Computes the complementary distribution function of the hyperbolic secant distribution with parameters \(\mu\) and \(\sigma\). | |
| static double | inverseF (double mu, double sigma, double u) |
| Computes the inverse of the hyperbolic secant distribution with parameters \(\mu\) and \(\sigma\). | |
| static double[] | getMLE (double[] x, int n) |
| Estimates the parameters \((\mu, \sigma)\) of the hyperbolic secant distribution using the maximum likelihood method, from the. | |
| static HyperbolicSecantDist | getInstanceFromMLE (double[] x, int n) |
| Creates a new instance of a hyperbolic secant distribution with parameters \(\mu\) and \(\sigma\) estimated using the maximum likelihood method based on the \(n\) observations \(x[i]\), \(i = 0, 1, …,
n-1\). | |
| static double | getMean (double mu, double sigma) |
| Computes and returns the mean \(E[X] = \mu\) of the hyperbolic secant distribution with parameters \(\mu\) and \(\sigma\). | |
| static double | getVariance (double mu, double sigma) |
| Computes and returns the variance \(\mbox{Var}[X] = \sigma^2\) of the hyperbolic secant distribution with parameters \(\mu\) and. | |
| static double | getStandardDeviation (double mu, double sigma) |
| Computes and returns the standard deviation of the hyperbolic secant distribution with parameters \(\mu\) and \(\sigma\). | |
Extends the class ContinuousDistribution for the hyperbolic secant distribution with location parameter \(\mu\) and scale parameter.
\[ f(x) = \frac{1}{2 \sigma} \mbox{ sech}\left(\frac{\pi}{2} \frac{(x - \mu)}{\sigma}\right) \tag{fHyperbolicSecant} \]
The distribution function is given by
\[ F(x) = \frac{2}{\pi} \tan^{-1}\left[\exp{\left(\frac{\pi}{2} \frac{(x - \mu)}{\sigma}\right)}\right] \tag{FHyperbolicSecant} \]
The non-static versions of the methods cdf, barF, and inverseF call the static version of the same name.
Definition at line 48 of file HyperbolicSecantDist.java.
| umontreal.ssj.probdist.HyperbolicSecantDist.HyperbolicSecantDist | ( | double | mu, |
| double | sigma ) |
Constructs a hyperbolic secant distribution with parameters.
\(\mu\) and \(\sigma\).
Definition at line 88 of file HyperbolicSecantDist.java.
|
static |
Computes the complementary distribution function of the hyperbolic secant distribution with parameters \(\mu\) and \(\sigma\).
Definition at line 157 of file HyperbolicSecantDist.java.
| double umontreal.ssj.probdist.HyperbolicSecantDist.barF | ( | double | x | ) |
Returns the complementary distribution function.
The default implementation computes \(\bar{F}(x) = 1 - F(x)\).
| x | value at which the complementary distribution function is evaluated |
Reimplemented from umontreal.ssj.probdist.ContinuousDistribution.
Definition at line 100 of file HyperbolicSecantDist.java.
|
static |
Computes the distribution function of the hyperbolic secant distribution with parameters \(\mu\) and \(\sigma\).
Definition at line 141 of file HyperbolicSecantDist.java.
| double umontreal.ssj.probdist.HyperbolicSecantDist.cdf | ( | double | x | ) |
Returns the distribution function \(F(x)\).
| x | value at which the distribution function is evaluated |
Implements umontreal.ssj.probdist.Distribution.
Definition at line 96 of file HyperbolicSecantDist.java.
|
static |
Computes the density function ( fHyperbolicSecant ) for a hyperbolic secant distribution with parameters.
\(\mu\) and \(\sigma\).
Definition at line 127 of file HyperbolicSecantDist.java.
| double umontreal.ssj.probdist.HyperbolicSecantDist.density | ( | double | x | ) |
Returns \(f(x)\), the density evaluated at \(x\).
| x | value at which the density is evaluated |
Reimplemented from umontreal.ssj.probdist.ContinuousDistribution.
Definition at line 92 of file HyperbolicSecantDist.java.
|
static |
Creates a new instance of a hyperbolic secant distribution with parameters \(\mu\) and \(\sigma\) estimated using the maximum likelihood method based on the \(n\) observations \(x[i]\), \(i = 0, 1, …, n-1\).
| x | the list of observations to use to evaluate parameters |
| n | the number of observations to use to evaluate parameters |
Definition at line 246 of file HyperbolicSecantDist.java.
| double umontreal.ssj.probdist.HyperbolicSecantDist.getMean | ( | ) |
Returns the mean.
Reimplemented from umontreal.ssj.probdist.ContinuousDistribution.
Definition at line 108 of file HyperbolicSecantDist.java.
|
static |
Computes and returns the mean \(E[X] = \mu\) of the hyperbolic secant distribution with parameters \(\mu\) and \(\sigma\).
Definition at line 257 of file HyperbolicSecantDist.java.
|
static |
Estimates the parameters \((\mu, \sigma)\) of the hyperbolic secant distribution using the maximum likelihood method, from the.
\(n\) observations \(x[i]\), \(i = 0, 1,…, n-1\). The estimates are returned in a two-element array, in regular order: [ \(\mu\), \(\sigma\)]. The estimate of the parameters is given by maximizing numerically the log-likelihood function, using the Uncmin package [203], [224] .
| x | the list of observations to use to evaluate parameters |
| n | the number of observations to use to evaluate parameters |
Definition at line 202 of file HyperbolicSecantDist.java.
| double umontreal.ssj.probdist.HyperbolicSecantDist.getMu | ( | ) |
Returns the parameter \(\mu\) of this object.
Definition at line 290 of file HyperbolicSecantDist.java.
| double[] umontreal.ssj.probdist.HyperbolicSecantDist.getParams | ( | ) |
Return a table containing the parameters of the current distribution.
This table is put in regular order: [ \(\mu\), \(\sigma\)].
Implements umontreal.ssj.probdist.Distribution.
Definition at line 316 of file HyperbolicSecantDist.java.
| double umontreal.ssj.probdist.HyperbolicSecantDist.getSigma | ( | ) |
Returns the parameter \(\sigma\) of this object.
Definition at line 297 of file HyperbolicSecantDist.java.
| double umontreal.ssj.probdist.HyperbolicSecantDist.getStandardDeviation | ( | ) |
Returns the standard deviation.
Reimplemented from umontreal.ssj.probdist.ContinuousDistribution.
Definition at line 116 of file HyperbolicSecantDist.java.
|
static |
Computes and returns the standard deviation of the hyperbolic secant distribution with parameters \(\mu\) and \(\sigma\).
Definition at line 283 of file HyperbolicSecantDist.java.
| double umontreal.ssj.probdist.HyperbolicSecantDist.getVariance | ( | ) |
Returns the variance.
Reimplemented from umontreal.ssj.probdist.ContinuousDistribution.
Definition at line 112 of file HyperbolicSecantDist.java.
|
static |
Computes and returns the variance \(\mbox{Var}[X] = \sigma^2\) of the hyperbolic secant distribution with parameters \(\mu\) and.
\(\sigma\).
Definition at line 270 of file HyperbolicSecantDist.java.
|
static |
Computes the inverse of the hyperbolic secant distribution with parameters \(\mu\) and \(\sigma\).
Definition at line 174 of file HyperbolicSecantDist.java.
| double umontreal.ssj.probdist.HyperbolicSecantDist.inverseF | ( | double | u | ) |
Returns the inverse distribution function \(x = F^{-1}(u)\).
Restrictions: \(u \in[0,1]\).
| u | value at which the inverse distribution function is evaluated |
| IllegalArgumentException | if \(u\) is not in the interval \([0,1]\) |
Reimplemented from umontreal.ssj.probdist.ContinuousDistribution.
Definition at line 104 of file HyperbolicSecantDist.java.
| void umontreal.ssj.probdist.HyperbolicSecantDist.setParams | ( | double | mu, |
| double | sigma ) |
Sets the parameters \(\mu\) and \(\sigma\) of this object.
Definition at line 304 of file HyperbolicSecantDist.java.
| String umontreal.ssj.probdist.HyperbolicSecantDist.toString | ( | ) |
Returns a String containing information about the current distribution.
Definition at line 324 of file HyperbolicSecantDist.java.