|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgmm.GMMEstimator
public abstract class GMMEstimator
This abstract class represents a estimator of the Generalized Mallows Model. It contains generic functionality that any estimator will need. Any particular estimator must inherit from this class.
Field Summary | |
---|---|
protected boolean |
GMM
|
protected float |
logL
|
protected static int |
maxIters
|
protected int |
n
|
protected int[] |
pi
|
protected float[][] |
Q
|
protected long |
runningTime
|
protected float[] |
theta
|
protected float[] |
V
|
Constructor Summary | |
---|---|
GMMEstimator(boolean GMM,
float[][] Q)
|
Method Summary | |
---|---|
protected void |
computeLogL()
Must be called by a subclass only after the theta values have been set. |
protected void |
computeThetas()
Sets the theta values. |
protected void |
computeVjs()
Sets the V_j values. |
float |
getAvgDk()
|
float |
getLogL()
|
float |
getLogLForQ(float[][] argQ)
|
int[] |
getPi()
|
long |
getRunningTime()
|
protected float |
lnPsiJPrime(int j,
float thetaJ)
|
protected float |
minimizeF(float D)
|
protected float |
minimizeFj(int j,
float Vj)
|
float |
minValueOfFj(int j,
float Vj)
|
void |
printLearnedModel(java.io.PrintWriter out)
|
protected float |
PsiJ(int j,
float thetaJ)
|
abstract void |
run()
This method causes the estimator to run, and estimate the GMM parameters. |
protected float |
sumOfLnPsiJPrime(int startJ,
int endJ,
float thetaJ)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean GMM
protected float[][] Q
protected int n
protected int[] pi
protected float[] theta
protected float[] V
protected float logL
protected long runningTime
protected static int maxIters
Constructor Detail |
---|
public GMMEstimator(boolean GMM, float[][] Q)
Method Detail |
---|
public abstract void run() throws java.lang.Exception
java.lang.Exception
public int[] getPi()
public float getAvgDk()
public float getLogL()
public long getRunningTime()
public void printLearnedModel(java.io.PrintWriter out)
protected float PsiJ(int j, float thetaJ)
protected float lnPsiJPrime(int j, float thetaJ)
j
- thetaJ
-
protected float sumOfLnPsiJPrime(int startJ, int endJ, float thetaJ)
protected float minimizeFj(int j, float Vj)
j
- Vj
-
public float minValueOfFj(int j, float Vj)
j
- Vj
-
protected float minimizeF(float D)
D
-
protected void computeVjs()
protected void computeThetas()
protected void computeLogL()
public float getLogLForQ(float[][] argQ)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |