You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ce...@apache.org on 2012/01/05 05:09:55 UTC
svn commit: r1227476 -
/commons/proper/math/trunk/src/main/java/org/apache/commons/math/transform/TransformUtils.java
Author: celestin
Date: Thu Jan 5 04:09:55 2012
New Revision: 1227476
URL: http://svn.apache.org/viewvc?rev=1227476&view=rev
Log:
Javadoc
Modified:
commons/proper/math/trunk/src/main/java/org/apache/commons/math/transform/TransformUtils.java
Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/transform/TransformUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/transform/TransformUtils.java?rev=1227476&r1=1227475&r2=1227476&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/transform/TransformUtils.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/transform/TransformUtils.java Thu Jan 5 04:09:55 2012
@@ -20,6 +20,9 @@ import org.apache.commons.math.complex.C
/**
* Useful functions for the implementation of various transforms.
+ *
+ * @version $Id $
+ * @since 3.0
*/
public class TransformUtils {
/** Private constructor. */
@@ -36,7 +39,7 @@ public class TransformUtils {
* @return a reference to the scaled array
*/
public static double[] scaleArray(double[] f, double d) {
-
+
for (int i = 0; i < f.length; i++) {
f[i] *= d;
}
@@ -52,7 +55,7 @@ public class TransformUtils {
* @return a reference to the scaled array
*/
public static Complex[] scaleArray(Complex[] f, double d) {
-
+
for (int i = 0; i < f.length; i++) {
f[i] = new Complex(d * f[i].getReal(), d * f[i].getImaginary());
}