public class NakagamiDist extends ContinuousDistribution
ContinuousDistribution for
the Nakagami distribution with location parameter a,
scale parameter
λ > 0 and shape parameter c > 0.
The density is
decPrec| Constructor and Description |
|---|
NakagamiDist(double a,
double lambda,
double c)
Constructs a NakagamiDist object with parameters a =
a, λ = lambda and c = c.
|
| Modifier and Type | Method and Description |
|---|---|
double |
barF(double x)
Returns the complementary distribution function.
|
static double |
barF(double a,
double lambda,
double c,
double x)
Computes the complementary distribution function.
|
double |
cdf(double x)
Returns the distribution function F(x).
|
static double |
cdf(double a,
double lambda,
double c,
double x)
Computes the distribution function.
|
double |
density(double x)
Returns f (x), the density evaluated at x.
|
static double |
density(double a,
double lambda,
double c,
double x)
Computes the density function of the Nakagami distribution.
|
double |
getA()
Returns the location parameter a of this object.
|
double |
getC()
Returns the shape parameter c of this object.
|
double |
getLambda()
Returns the scale parameter λ of this object.
|
double |
getMean()
Returns the mean.
|
static double |
getMean(double a,
double lambda,
double c)
.
|
double[] |
getParams()
Return a table containing the parameters of the current distribution.
|
double |
getStandardDeviation()
Returns the standard deviation.
|
static double |
getStandardDeviation(double a,
double lambda,
double c)
Computes the standard deviation of the Nakagami distribution with
parameters a, λ and c.
|
double |
getVariance()
Returns the variance.
|
static double |
getVariance(double a,
double lambda,
double c)
.
|
double |
inverseF(double u)
Returns the inverse distribution function
x = F-1(u).
|
static double |
inverseF(double a,
double lambda,
double c,
double u)
Computes the inverse of the distribution function.
|
void |
setParams(double a,
double lambda,
double c)
Sets the parameters a, λ and c of this object.
|
java.lang.String |
toString()
Returns a String containing information about the current distribution.
|
getXinf, getXsup, inverseBisection, inverseBrent, setXinf, setXsuppublic NakagamiDist(double a,
double lambda,
double c)
public double density(double x)
ContinuousDistributiondensity in class ContinuousDistributionx - value at which the density is evaluatedpublic double cdf(double x)
Distributionx - value at which the distribution function is evaluatedpublic double barF(double x)
ContinuousDistributionbarF in interface DistributionbarF in class ContinuousDistributionx - value at which the complementary distribution function is evaluatedpublic double inverseF(double u)
ContinuousDistributioninverseF in interface DistributioninverseF in class ContinuousDistributionu - value at which the inverse distribution function is evaluatedpublic double getMean()
ContinuousDistributiongetMean in interface DistributiongetMean in class ContinuousDistributionpublic double getVariance()
ContinuousDistributiongetVariance in interface DistributiongetVariance in class ContinuousDistributionpublic double getStandardDeviation()
ContinuousDistributiongetStandardDeviation in interface DistributiongetStandardDeviation in class ContinuousDistributionpublic static double density(double a,
double lambda,
double c,
double x)
a - the location parameterlambda - the scale parameterc - the shape parameterx - the value at which the density is evaluatedpublic static double cdf(double a,
double lambda,
double c,
double x)
a - the location parameterlambda - the scale parameterc - the shape parameterx - the value at which the distribution is evaluatedpublic static double barF(double a,
double lambda,
double c,
double x)
a - the location parameterlambda - the scale parameterc - the shape parameterx - the value at which the complementary distribution is evaluatedpublic static double inverseF(double a,
double lambda,
double c,
double u)
a - the location parameterlambda - the scale parameterc - the shape parameteru - the value at which the inverse distribution is evaluatedpublic static double getMean(double a,
double lambda,
double c)
.
a - the location parameterlambda - the scale parameterc - the shape parameterpublic static double getVariance(double a,
double lambda,
double c)
[c - ([tex2html_wrap_indisplay261])2].
a - the location parameterlambda - the scale parameterc - the shape parameterpublic static double getStandardDeviation(double a,
double lambda,
double c)
a - the location parameterlambda - the scale parameterc - the shape parameterpublic double getA()
public double getLambda()
public double getC()
public void setParams(double a,
double lambda,
double c)
a - the location parameterlambda - the scale parameterc - the shape parameterpublic double[] getParams()
public java.lang.String toString()
toString in class java.lang.ObjectTo submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.