cc.mallet.grmm.types
Interface DiscreteFactor

All Superinterfaces:
java.lang.Cloneable, Factor, java.io.Serializable
All Known Implementing Classes:
AbstractTableFactor, BoltzmannPairFactor, BoltzmannUnaryFactor, CPT, LogTableFactor, TableFactor

public interface DiscreteFactor
extends Factor

$Id: DiscreteFactor.java,v 1.1 2007/10/22 21:37:44 mccallum Exp $


Method Summary
 int indexAtLocation(int loc)
           
 int numLocations()
           
 int sampleLocation(Randoms r)
           
 int singleIndex(int[] smallDims)
           
 double[] toValueArray()
           
 double value(int index)
           
 double valueAtLocation(int loc)
           
 
Methods inherited from interface cc.mallet.grmm.types.Factor
almostEquals, almostEquals, argmax, assignmentIterator, asTable, containsVar, divideBy, dumpToString, duplicate, entropy, exponentiate, extractMax, extractMax, extractMax, getVariable, isNaN, logValue, logValue, logValue, marginalize, marginalize, marginalize, marginalizeOut, marginalizeOut, multiply, multiplyBy, normalize, prettyOutputString, sample, slice, sum, value, value, varSet
 

Method Detail

sampleLocation

int sampleLocation(Randoms r)

value

double value(int index)

numLocations

int numLocations()

valueAtLocation

double valueAtLocation(int loc)

indexAtLocation

int indexAtLocation(int loc)

toValueArray

double[] toValueArray()

singleIndex

int singleIndex(int[] smallDims)