gmm
Class InputGenerator

java.lang.Object
  extended by gmm.InputGenerator

public class InputGenerator
extends java.lang.Object

This class generates instances of the input matrix Q.


Constructor Summary
InputGenerator(java.lang.String paramsFile)
           
 
Method Summary
 void displayMatrixQ(float[][] Q)
           
 void generateRanking(int[] ranking)
           
 boolean generatesQFromModel()
           
 int generateVj(int j)
           
 int get_n()
           
 float[][] getMatrixQ()
           
 int getN()
           
 boolean isGMM()
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputGenerator

public InputGenerator(java.lang.String paramsFile)
Method Detail

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)