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 $
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 |
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)