public static class NaiveBayesClassifierEx3.TestGaussFcn1 extends Object implements ProbabilityDistribution
Constructor and Description |
---|
TestGaussFcn1(double mean,
double stdev) |
Modifier and Type | Method and Description |
---|---|
double[] |
eval(double[] xData)
Evaluation method to fit the user-supplied probability density
function to input data
|
double[] |
eval(double[] xData,
Object[] Params)
Evaluates the user-supplied probability density of each value in
xData using the supplied probability distribution
parameters. |
double |
eval(double xData,
Object[] Params)
Evaluation method for the user-supplied distribution function and
parameters.
|
Object[] |
getParameters()
Returns the current parameters of the probability density function.
|
public double[] eval(double[] xData)
Distribution
eval
in interface Distribution
xData
- a double
array representing the points at
which the probability density function is to be evaluated.double
array representing the probability
density at each value of xData
public double[] eval(double[] xData, Object[] Params)
ProbabilityDistribution
xData
using the supplied probability distribution
parameters.eval
in interface ProbabilityDistribution
xData
- a double
array containing the points at which
the probability density function is to be evaluatedParams
- 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
public double eval(double xData, Object[] Params)
ProbabilityDistribution
xData
using the supplied probability distribution
parameters.eval
in interface ProbabilityDistribution
xData
- a double
scalar value containing the point the
distribution function is to evaluateParams
- 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
public Object[] getParameters()
ProbabilityDistribution
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.Copyright © 2020 Rogue Wave Software. All rights reserved.