package rlpark.plugin.rltoys.experiments.parametersweep.reinforcementlearning;

public class RLParameters {
  public static final String OnPolicyTimeStepsEvaluationFlag = "onPolicyTimeStepsEvaluationFlag";
  public static final String MaxEpisodeTimeSteps = "maxEpisodeTimeSteps";
  public static final String NbEpisode = "nbEpisode";
  public static final String Gamma = "gamma";
  public static final String AverageReward = "averageReward";
  public static final String Lambda = "Lambda";
  public static final String Tau = "Tau";
  public static final String AveRewardStepSize = "AveRewardStepSize";
  public static final String ActorStepSize = "ActorStepSize";
  public static final String ValueFunctionStepSize = "ValueFunctionStepSize";
  public static final String ValueFunctionSecondStepSize = "ValueFunctionSecondStepSize";
  public static final String Temperature = "Temperature";

  final static public double[] getSoftmaxValues() {
    return new double[] { 100.0, 50.0, 10.0, 5.0, 1.0, .5, .1, .05, .01 };
  }

  final static public double[] getTauValues() {
    return new double[] { 1, 2, 4, 8, 16, 32 };
  }

  final static public double[] getStepSizeValues() {
    return new double[] { .0001, .0005, .001, .005, .01, .05, .1, .5, 1. };
  }

  final static public double[] getWideSweepStepSizeValues() {
    return new double[] { 1e-8, 1e-7, 1e-6, 1e-5, 1e-4, 1e-3, 1e-2, 1e-1, 1e0, 1e1 };
  }

  public static double[] getStepSizeValuesWithZero() {
    double[] withoutZero = getStepSizeValues();
    double[] result = new double[withoutZero.length + 1];
    System.arraycopy(withoutZero, 0, result, 1, withoutZero.length);
    result[0] = 0.0;
    return result;
  }
}

@@ -1162,38 +1162,65 @@
 pSizeValues(
-) %7B%0A    return
+boolean withZero) %7B%0A    double%5B%5D values =
  new double%5B
@@ -1269,24 +1269,93 @@
 , .5, 1. %7D;%0A
+    if (withZero)%0A      values = addZero(values);%0A    return values;%0A
   %7D%0A%0A  final
@@ -1401,38 +1401,65 @@
 pSizeValues(
-) %7B%0A    return
+boolean withZero) %7B%0A    double%5B%5D values =
  new double%5B
@@ -1528,113 +1528,137 @@
 ;%0A  
-%7D%0A%0A  public static double%5B%5D getStepSizeValuesWithZero() %7B%0A    double%5B%5D withoutZero = getStepSizeValues();
+  if (withZero)%0A      values = addZero(values);%0A    return values;%0A  %7D%0A%0A  private static double%5B%5D addZero(double%5B%5D withoutZero) %7B
 %0A   

Change the parameters API