|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcc.mallet.grmm.types.AbstractFactor
cc.mallet.grmm.types.NormalFactor
public class NormalFactor
Multivariate Gaussian factor. Currently, almost all of this class is a stub, except for the sample method. $Id: NormalFactor.java,v 1.1 2007/10/22 21:37:44 mccallum Exp $
| Field Summary |
|---|
| Fields inherited from class cc.mallet.grmm.types.AbstractFactor |
|---|
vars |
| Constructor Summary | |
|---|---|
NormalFactor(VarSet vars,
no.uib.cipr.matrix.Vector mean,
no.uib.cipr.matrix.Matrix variance)
|
|
| Method Summary | |
|---|---|
boolean |
almostEquals(Factor p,
double epsilon)
|
void |
divideBy(Factor f)
Computes this /= pot |
java.lang.String |
dumpToString()
|
Factor |
duplicate()
|
protected Factor |
extractMaxInternal(VarSet varSet)
|
boolean |
isNaN()
|
protected double |
lookupValueInternal(int i)
|
protected Factor |
marginalizeInternal(VarSet varsToKeep)
|
void |
multiplyBy(Factor f)
Does this *= pot. |
Factor |
normalize()
Multiplies this potential by a constant such that it sums to 1. |
Assignment |
sample(Randoms r)
Return an assignment sampled from this factor, interpreting it as an unnormalized probability distribution. |
Factor |
slice(Assignment assn)
|
java.lang.String |
toString()
|
double |
value(Assignment assn)
Returns the value of the local function for a given assignment. |
| Methods inherited from class cc.mallet.grmm.types.AbstractFactor |
|---|
almostEquals, argmax, assignmentIterator, asTable, containsVar, delogify, entropy, exponentiate, extractMax, extractMax, extractMax, getVariable, isInLogSpace, log, logify, logValue, logValue, logValue, marginalize, marginalize, marginalize, marginalizeOut, marginalizeOut, multiply, phi, prettyOutputString, setVarSet, sum, value, varSet |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NormalFactor(VarSet vars,
no.uib.cipr.matrix.Vector mean,
no.uib.cipr.matrix.Matrix variance)
| Method Detail |
|---|
protected Factor extractMaxInternal(VarSet varSet)
extractMaxInternal in class AbstractFactorpublic double value(Assignment assn)
Factor
value in interface Factorvalue in class AbstractFactorprotected double lookupValueInternal(int i)
lookupValueInternal in class AbstractFactorprotected Factor marginalizeInternal(VarSet varsToKeep)
marginalizeInternal in class AbstractFactorpublic Factor normalize()
Factor
public Assignment sample(Randoms r)
Factor
sample in interface Factorsample in class AbstractFactor
public boolean almostEquals(Factor p,
double epsilon)
public Factor duplicate()
public boolean isNaN()
public java.lang.String dumpToString()
public java.lang.String toString()
toString in class java.lang.Objectpublic Factor slice(Assignment assn)
public void multiplyBy(Factor f)
FactorIf both potentials are currently in log space, then does addition instead.
multiplyBy in interface FactormultiplyBy in class AbstractFactorpublic void divideBy(Factor f)
FactorIf both potentials are currently in log space, then does subtraction instead.
divideBy in interface FactordivideBy in class AbstractFactor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||