コード例 #1
0
ファイル: ScalarImage.java プロジェクト: JoeyPrink/TEALsim
 public void power(double exp)
       /* Transforms all the scalar values in 'this' by the rule:
        *   f' = f^exp */
     {
   for (int k = 0; k < size; ++k) f[k] = (float) Math.pow(f[k], exp);
 }