public class UnivariateMixtureEstimator.MM
extends java.lang.Object
Constructor and Description |
---|
MM() |
Modifier and Type | Method and Description |
---|---|
void |
initializeModel(int K,
double[] values,
double[] weights,
java.util.Random r)
Initializes the model.
|
double |
logDensity(double value)
Computes log of density for given value.
|
double |
loglikelihood(double[] values,
double[] weights)
Computes loglikelihood of current model.
|
double |
MSE()
Returns average of squared errors for current model.
|
double[][] |
predictIntervals(double conf)
Returns the interval for the given confidence value.
|
double |
predictQuantile(double percentage)
Returns the quantile for the given percentage.
|
java.lang.String |
toString()
Returns string describing the estimator.
|
public java.lang.String toString()
toString
in class java.lang.Object
public void initializeModel(int K, double[] values, double[] weights, java.util.Random r)
public double loglikelihood(double[] values, double[] weights)
public double MSE()
public double logDensity(double value)
public double[][] predictIntervals(double conf)
conf
- the confidence value in the interval [0, 1]public double predictQuantile(double percentage)
percentage
- the percentage