|
JMSLTM Numerical Library 6.1 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.imsl.stat.LogNormalDistribution
public class LogNormalDistribution
Evaluates a lognormal probability density for a given set of data.
LogNormalDistribution
evaluates the lognormal probability
density of a given set of data, xData
. If parameters are not
supplied, the eval
method fits the lognormal probability
density function to the data by first calculating the mean and standard
deviation. The lognormal probability density function is defined as:
The DataMining
package class NaiveBayesClassifier
uses LognormalDistribution
as a method to train continuous
data.
Constructor Summary | |
---|---|
LogNormalDistribution()
|
Method Summary | |
---|---|
double[] |
eval(double[] xData)
Fits a lognormal probability distribution to xData and
returns the probability density at each value. |
double[] |
eval(double[] xData,
Object[] parameters)
Evaluates a lognormal probability distribution with a given set of parameters at each point in xData and returns the
probability density at each value. |
double |
eval(double xData,
Object[] parameters)
Evaluates a lognormal probability density function at a given point xData . |
double |
getMean()
Returns the lognormal probability distribution mean parameter. |
Object[] |
getParameters()
Returns the current parameters of the lognormal probability density function |
double |
getStandardDeviation()
Returns the lognormal probability distribution standard deviation parameter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LogNormalDistribution()
Method Detail |
---|
public double[] eval(double[] xData)
xData
and
returns the probability density at each value.
eval
in interface Distribution
xData
- a double
array representing the points at
which the lognormal probability distribution function is
to be evaluated
double
array representing the lognormal
probability density at each value of xData
public double[] eval(double[] xData, Object[] parameters)
xData
and returns the
probability density at each value.
eval
in interface ProbabilityDistribution
xData
- a double
array representing the points at
which the lognormal probability distribution function is
to be evaluatedparameters
- an Object
array representing the
parameters used to evaluate the lognormal distribution,
see method getParameters
double
array representing the lognormal
probability density at each value of xData
public double eval(double xData, Object[] parameters)
xData
.
eval
in interface ProbabilityDistribution
xData
- a double
representing the point at which the
lognormal probability distribution function is to be
evaluatedparameters
- an Object
array representing the
parameters used to evaluate the lognormal distribution,
see method getParameters
double
representing the lognormal probability
density at xData
public double getMean()
double
representing the mean parameterpublic Object[] getParameters()
getParameters
in interface ProbabilityDistribution
Object
array containing the parameters
resulting from the last invocation of the
(Distribution
) eval
method with
the following signature, double[] eval(double[] xData)
.
This Object
array can be used as input to the
eval
methods that require an Object
array of distribution parameters as input.public double getStandardDeviation()
double
representing the standard deviation parameter
|
JMSLTM Numerical Library 6.1 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |