gmm
Class InputGenerator
java.lang.Object
gmm.InputGenerator
public class InputGenerator
- extends java.lang.Object
This class generates instances of the input matrix Q.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InputGenerator
public InputGenerator(java.lang.String paramsFile)
get_n
public int get_n()
getN
public int getN()
isGMM
public boolean isGMM()
generatesQFromModel
public boolean generatesQFromModel()
generateVj
public int generateVj(int j)
- Parameters:
j
-
- Returns:
- a value for $V_j$ from the set {0,1,...,n-j} where the
probability of returning $i$ is proportional to $e^(-i*theta_j)$.
generateRanking
public void generateRanking(int[] ranking)
getMatrixQ
public float[][] getMatrixQ()
- Returns:
- an instance of the Q matrix. Q[i][j] is the probability
that i is preferred to j in the ranking data.
displayMatrixQ
public void displayMatrixQ(float[][] Q)
main
public static void main(java.lang.String[] args)