|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectstatistics.Density
statistics.DensityDiagonal
public final class DensityDiagonal
Field Summary |
---|
Fields inherited from class statistics.Density |
---|
apr, ascore, cov, fd, id, lh, MIN_PROB, mue, REGULARIZER, score |
Constructor Summary | |
---|---|
DensityDiagonal(DensityDiagonal copy)
|
|
DensityDiagonal(DensityFull copy)
|
|
DensityDiagonal(double apr,
double[] mue,
double[] cov)
Create a new Density with diagonal covariance |
|
DensityDiagonal(int dim)
Create a new Density with diagonal covariance. |
Method Summary | |
---|---|
Density |
clone()
Create a deep copy of this instance. |
double[] |
drawSample()
|
double |
evaluate(double[] x)
Evaluate the density for the given sample vector x. |
static DensityDiagonal |
fromString(java.lang.String ps)
Read a parameter string |
java.lang.String |
toString()
Obtain a string representation of the density. |
void |
update()
Update the internal variables. |
Methods inherited from class statistics.Density |
---|
clear, covarianceAsGnuplot, fill, superVector |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DensityDiagonal(DensityDiagonal copy)
public DensityDiagonal(DensityFull copy)
public DensityDiagonal(double apr, double[] mue, double[] cov)
apr
- prior probabilitymue
- mean vectorcov
- covariance vectorpublic DensityDiagonal(int dim)
dim
- Feature dimensionMethod Detail |
---|
public Density clone()
clone
in class Density
public double[] drawSample()
public double evaluate(double[] x)
evaluate
in class Density
x
- feature vector
public static DensityDiagonal fromString(java.lang.String ps)
ps
- comma seperated list of double values, representing mean and diagonal covariance
public java.lang.String toString()
toString
in class java.lang.Object
public void update()
update
in class Density
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |