Beispiel #1
0
        /**
         * Constructs an MDP that can be used to generate the utility values
         * detailed in Fig 17.3.
         *
         * @param cw
         *            the cell world from figure 17.1.
         * @return an MDP that can be used to generate the utility values detailed
         *         in Fig 17.3.
         */

        public static MarkovDecisionProcess <Cell <Double>, CellWorldAction> createMDPForFigure17_3(
            CellWorld <Double> cw)
        {
            return(new MDP <Cell <Double>, CellWorldAction>(cw.getCells(),
                                                            cw.getCellAt(1, 1), createActionsFunctionForFigure17_1(cw),
                                                            createTransitionProbabilityFunctionForFigure17_1(cw),
                                                            createRewardFunctionForFigure17_1()));
        }