Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## ve
Class FactorUniform

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

public class FactorUniform
extends Factor

This is a factor that has a uniform probability. This is here because it is the initial factor before anything is changed.

Inner Class Summary
`private class` | `FactorUniform.Itr`

Field Summary
`private double` | `uniformVal`

Fields inherited from class ve.Factor
`BY_ASSIGN, BY_CPT, BY_DETERMINISTIC, BY_EXPANDING, BY_GENRULE, BY_MAXIMIZING, BY_MULTIPLYING, BY_NORMALIZING, BY_OBSERVED, BY_PLUS, BY_REORDERING, BY_SAVEIT, BY_SUM_OUT, BY_UNIFORM, BY_UPDATABLE, BY_V_ELIM, howCreatedVal, savingForTracing, thesize, variables`

Constructor Summary
`FactorUniform(Variable[] vars, double val)` constructs a factor with the given variables.

Method Summary
`EltsIterator` | `iterator()` Returns an iterator over the values of the factor.

Methods inherited from class ve.Factor
`allOnes, contains, display, getName, getSavingForTracing, getVariables, howCreated, isRedundant, isRedundant, print, print, printVariables, setSavingForTracing, size, toString`

Methods inherited from class java.lang.Object
`, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait`

Field Detail

### uniformVal

    private double uniformVal

Constructor Detail

### FactorUniform

    public FactorUniform(Variable[] vars,
                         double val)

  constructs a factor with the given variables.
  Parameters:
    `vars` - the list of variables
    `val` - the value that each element takes

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`

Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD