コード例 #1
0
        public void loadParams(string param)
        {
            string stemp = "";

            string[] temp = param.Split('}');

            stemp = Extention.getParamValueString(temp, "RSRConstant");
            switch (stemp)
            {
            case "Yes": RSRConstant = StableTermType.Указанный; break;

            case "No": RSRConstant = StableTermType.Случайный; break;

            default: RSRConstant = StableTermType.Указанный; break;
            }

            stemp = Extention.getParamValueString(temp, "RSRTypeFunc");
            switch (stemp)
            {
            case "Triangle": RSRTypeFunc = TypeTermFuncEnum.Треугольник; break;

            case "Gauss": RSRTypeFunc = TypeTermFuncEnum.Гауссоида; break;

            case "Parabola": RSRTypeFunc = TypeTermFuncEnum.Парабола; break;

            case "Trapezium": RSRTypeFunc = TypeTermFuncEnum.Трапеция; break;

            default: RSRTypeFunc = TypeTermFuncEnum.Треугольник; break;
            }

            RSRCountRules = Extention.getParamValueInt(temp, "RSRCountRules");
        }
コード例 #2
0
      public virtual void loadParams(string param)
      {
          string stemp = "";

          string[] temp = param.Split('}');

          stemp = Extention.getParamValueString(temp, "IEWEFuncType");
          switch (stemp)
          {
          case "Triangle": IEWEFuncType = TypeTermFuncEnum.Треугольник; break;

          case "Gauss": IEWEFuncType = TypeTermFuncEnum.Гауссоида; break;

          case "Parabola": IEWEFuncType = TypeTermFuncEnum.Парабола; break;

          case "Trapezium": IEWEFuncType = TypeTermFuncEnum.Трапеция; break;

          default: IEWEFuncType = TypeTermFuncEnum.Треугольник; break;
          }


          stemp = Extention.getParamValueString(temp, "IEWECountSlice");

          string[] temps = stemp.Split(',');
          count_terms = new int[temps.Count()];
          for (int i = 0; i < temps.Count(); i++)
          {
              int.TryParse(temps[i], out count_terms[i]);
          }
          IEWECountSlice = count_terms;
      }
コード例 #3
0
        public void loadParams(string param)
        {
            string stemp = "";

            string[] temp = param.Split('}');


            stemp = Extention.getParamValueString(temp, "IBSTypeFunc");
            switch (stemp)
            {
            case "Triangle": IBSTypeFunc = TypeTermFuncEnum.Треугольник; break;

            case "Gauss": IBSTypeFunc = TypeTermFuncEnum.Гауссоида; break;

            case "Parabola": IBSTypeFunc = TypeTermFuncEnum.Парабола; break;

            case "Trapezium": IBSTypeFunc = TypeTermFuncEnum.Трапеция; break;

            default: IBSTypeFunc = TypeTermFuncEnum.Треугольник; break;
            }
        }
コード例 #4
0
 public void loadParams(string param)
 {
     string[] temp = param.Split('}');
     ShrinkFeature = Extention.getParamValueString(temp, "ShrinkFeatures");
 }
コード例 #5
0
 public void loadParams(string param)
 {
     string[] temp = param.Split('}');
     ChooseFeatures = Extention.getParamValueString(temp, "ChooseFeatures");
 }