|
JMSLTM Numerical Library 6.1 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProbabilityDistribution
Public interface for a user-supplied probability distribution.
The purpose of this interface is to evaluate the probability density of
a given set of data by either fitting the probability density function to
the data or by evaluating the probability density function with supplied
parameters. Both eval
methods return the probability density at
each value of the given set of data. After the probability distribution is
fitted to the data, the GetParameters
method can be used to
return the distribution parameters used to fit the probability density
function to the data.
The DataMining
package class
NaiveBayesClassifier
uses an implementation of
ProbabilityDistribution
to train continuous data.
Method Summary | |
---|---|
double[] |
eval(double[] xData,
Object[] parameters)
Evaluates the user-supplied probability density of each value in xData using the supplied probability distribution
parameters. |
double |
eval(double xData,
Object[] parameters)
Evaluation method for the user-supplied distribution function and parameters. |
Object[] |
getParameters()
Returns the current parameters of the probability density function. |
Methods inherited from interface com.imsl.stat.Distribution |
---|
eval |
Method Detail |
---|
double[] eval(double[] xData, Object[] parameters)
xData
using the supplied probability distribution
parameters.
xData
- a double
array containing the points at which
the probability density function is to be evaluatedparameters
- an Object
array containing the probability
distribution parameters to be used in evaluating
xData
, see method
getParameters
double
array representing the probability density
of each value in xData
double eval(double xData, Object[] parameters)
xData
using the supplied probability distribution
parameters.
xData
- a double
scalar value containing the point the
distribution function is to evaluateparameters
- an Object
array containing the probability
distribution parameters to be used in evaluating
xData
. See method
getParameters
.
double
scalar value representing the probability
density at xData
Object[] getParameters()
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.
|
JMSLTM Numerical Library 6.1 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |