コード例 #1
0
        /// <summary>
        /// Method creates 2D array of max action utilities and max action labels over across selected dimensions.
        /// The values in the memory are automatically scaled into the interval 0,1. Realtime values are multiplied by motivations.
        /// </summary>
        /// <param name="values">array passed by reference for storing utilities of best action</param>
        /// <param name="labelIndexes">array of the same size for best action indexes</param>
        /// <param name="XVarIndex">global index of state variable in the VariableManager</param>
        /// <param name="YVarIndex">the same: y axis</param>
        /// <param name="showRealtimeUtilities">show current utilities (scaled by the current motivation)</param>
        /// <param name="policyNumber">optinal parameter. In case that the agent has more strategies, you can choose which one to read from.</param>
        public override void ReadTwoDimensions(ref float[,] values, ref int[,] labelIndexes,
                                               int XVarIndex, int YVarIndex, bool showRealtimeUtilities = false, int policyNumber = 0)
        {
            MyStochasticReturnPredictor predictor = Vis.GetPredictorNo(policyNumber);

            Vis.ReadTwoDimensions(ref values, ref labelIndexes, predictor, XVarIndex, YVarIndex, showRealtimeUtilities);
        }
コード例 #2
0
 /// <summary>
 /// Method creates 2D array of max action utilities and max action labels over across selected dimensions.
 /// The values in the memory are automatically scaled into the interval 0,1. Realtime values are multiplied by motivations.
 /// </summary>
 /// <param name="values">array passed by reference for storing utilities of best action</param>
 /// <param name="labelIndexes">array of the same size for best action indexes</param>
 /// <param name="XVarIndex">global index of state variable in the VariableManager</param>
 /// <param name="YVarIndex">the same: y axis</param>
 /// <param name="showRealtimeUtilities">show current utilities (scaled by the current motivation)</param>
 /// <param name="policyNumber">not used here, this RL learns only one policy</param>
 public override void ReadTwoDimensions(ref float[,] values, ref int[,] labelIndexes,
                                        int XVarIndex, int YVarIndex, bool showRealtimeUtilities = false, int policyNumber = 0)
 {
     Vis.ReadTwoDimensions(ref values, ref labelIndexes, XVarIndex, YVarIndex, showRealtimeUtilities);
 }