ve
Class FactorAssign

java.lang.Object
  |
  +--ve.Factor
        |
        +--ve.FactorAssign

public class FactorAssign
extends Factor

This the the class of factors that are the the result of projecting another factor onto some observations.


Fields inherited from class ve.Factor
BY_MULTIPLYING, BY_SUM_OUT, BY_V_ELIM, BY_V_OBS, FROM_NODE, howCreated
 
Constructor Summary
FactorAssign(Factor f1, Variable var, int val)
          constructs a factor with the given assignment.
 
Method Summary
 EltsIterator iterator()
          Returns an iterator over the values of the factor.
 
Methods inherited from class ve.Factor
allOnes, contains, display, getName, getVariables, isRedundant, print, print, printVariables, size, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FactorAssign

public FactorAssign(Factor f1,
                    Variable var,
                    int val)
constructs a factor with the given assignment.
Parameters:
f1 - the factor that is to be updated
var - the variables that is assigned a value. It must appear in f1.
val - the value assigned to var.
Method Detail

iterator

public EltsIterator iterator()
Description copied from class: Factor
Returns an iterator over the values of the factor.
Overrides:
iterator in class Factor