Пример #1
0
 public override void init()
 {
     if (param % 1 < Utils.EPSILON)
         isIntegerType = true;
     else if (Math.Abs(param % 1 - 0.5) < Utils.EPSILON)
     {
         isHalfInteger = true;
         normalRandom = new RandomNormalValue();
     }
     else
     {
         //TODO: доделать
         throw new CreateModelException("not implemented");
     }
 }
Пример #2
0
 public override void init()
 {
     if (param % 1 < Utils.EPSILON)
     {
         isIntegerType = true;
     }
     else if (Math.Abs(param % 1 - 0.5) < Utils.EPSILON)
     {
         isHalfInteger = true;
         normalRandom  = new RandomNormalValue();
     }
     else
     {
         //TODO: доделать
         throw new CreateModelException("not implemented");
     }
 }