Class GamePlayerBenchmark.SampleState

    • 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