Class GamePlayerBenchmark.SampleState
- java.lang.Object
-
- edu.stanford.nlp.loglinear.benchmarks.GamePlayerBenchmark.SampleState
-
- Enclosing class:
- GamePlayerBenchmark
public static class GamePlayerBenchmark.SampleState extends Object
-
-
Field Summary
Fields Modifier and Type Field Description GraphicalModel.FactoraddedFactordouble[][]cachedMarginalList<GamePlayerBenchmark.SampleState>childrenintobservationintvariable
-
Constructor Summary
Constructors Constructor Description SampleState(GraphicalModel.Factor addedFactor, int variable, int observation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidpop(GraphicalModel model)See push() for an explanation.voidpush(GraphicalModel model)This applies this SampleState to the model.
-
-
-
Field Detail
-
addedFactor
public GraphicalModel.Factor addedFactor
-
variable
public int variable
-
observation
public int observation
-
children
public List<GamePlayerBenchmark.SampleState> children
-
cachedMarginal
public double[][] cachedMarginal
-
-
Constructor Detail
-
SampleState
public SampleState(GraphicalModel.Factor addedFactor, int variable, int observation)
-
-
Method Detail
-
push
public void push(GraphicalModel model)
This applies this SampleState to the model. The name comes from an analogy to a stack. If we take a sample path, involving a number of steps through the model, we push() each SampleState onto the model one at a time, then when we return from the sample we can pop() each SampleState off the model, and be left with our original model state.- Parameters:
model- the model to push this SampleState onto
-
pop
public void pop(GraphicalModel model)
See push() for an explanation.- Parameters:
model- the model to pop this SampleState from
-
-