コード例 #1
0
 public static void GetApproximationAxisNames(ApproximationTypes type, ref string x, ref string y)
 {
     switch (type)
     {
         case ApproximationTypes.Degree:
             {
                 x = "Ln (" + x + ")";
                 y = "Ln (" + y + ")";
                 break;
             }
         case ApproximationTypes.Exponential:
             {
                 y = "Ln (" + y + ")";
                 break;
             }
         case ApproximationTypes.Gaus:
             {
                 x = x  + " ^ 2";
                 y = "Ln (" + y + ")";
                 break;
             }
         default:
             {
                 break;
             }
     }
 }
コード例 #2
0
 public static void HandleApproximation(ApproximationTypes type, ref double x, ref double y)
 {
     switch (type)
     {
         case ApproximationTypes.Degree:
             {
                 x = Math.Log(x);
                 y = Math.Log(y);
                 break;
             }
         case ApproximationTypes.Exponential:
             {
                 y = Math.Log(y);
                 break;
             }
         case ApproximationTypes.Gaus:
             {
                 x *= x;
                 y = Math.Log(y);
                 break;
             }
         default:
             {
                 break;
             }
     }
 }