Formatting (MATH-677).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1208943 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5e2504bbb2
commit
f19895754d
|
@ -34,7 +34,7 @@ import org.apache.commons.math.exception.util.LocalizedFormats;
|
||||||
public class FastHadamardTransformer implements RealTransformer {
|
public class FastHadamardTransformer implements RealTransformer {
|
||||||
|
|
||||||
/** {@inheritDoc} */
|
/** {@inheritDoc} */
|
||||||
public double[] transform(double f[])
|
public double[] transform(double[] f)
|
||||||
throws IllegalArgumentException {
|
throws IllegalArgumentException {
|
||||||
return fht(f);
|
return fht(f);
|
||||||
}
|
}
|
||||||
|
@ -47,7 +47,7 @@ public class FastHadamardTransformer implements RealTransformer {
|
||||||
}
|
}
|
||||||
|
|
||||||
/** {@inheritDoc} */
|
/** {@inheritDoc} */
|
||||||
public double[] inverseTransform(double f[])
|
public double[] inverseTransform(double[] f)
|
||||||
throws IllegalArgumentException {
|
throws IllegalArgumentException {
|
||||||
return FastFourierTransformer.scaleArray(fht(f), 1.0 / f.length);
|
return FastFourierTransformer.scaleArray(fht(f), 1.0 / f.length);
|
||||||
}
|
}
|
||||||
|
@ -69,7 +69,7 @@ public class FastHadamardTransformer implements RealTransformer {
|
||||||
* @return the integer transformed array (spectrum)
|
* @return the integer transformed array (spectrum)
|
||||||
* @throws IllegalArgumentException if any parameters are invalid
|
* @throws IllegalArgumentException if any parameters are invalid
|
||||||
*/
|
*/
|
||||||
public int[] transform(int f[])
|
public int[] transform(int[] f)
|
||||||
throws IllegalArgumentException {
|
throws IllegalArgumentException {
|
||||||
return fht(f);
|
return fht(f);
|
||||||
}
|
}
|
||||||
|
@ -151,7 +151,7 @@ public class FastHadamardTransformer implements RealTransformer {
|
||||||
* @return y output vector
|
* @return y output vector
|
||||||
* @exception IllegalArgumentException if input array is not a power of 2
|
* @exception IllegalArgumentException if input array is not a power of 2
|
||||||
*/
|
*/
|
||||||
protected double[] fht(double x[]) throws IllegalArgumentException {
|
protected double[] fht(double[] x) throws IllegalArgumentException {
|
||||||
|
|
||||||
// n is the row count of the input vector x
|
// n is the row count of the input vector x
|
||||||
final int n = x.length;
|
final int n = x.length;
|
||||||
|
@ -202,7 +202,7 @@ public class FastHadamardTransformer implements RealTransformer {
|
||||||
* @return y output vector
|
* @return y output vector
|
||||||
* @exception IllegalArgumentException if input array is not a power of 2
|
* @exception IllegalArgumentException if input array is not a power of 2
|
||||||
*/
|
*/
|
||||||
protected int[] fht(int x[]) throws IllegalArgumentException {
|
protected int[] fht(int[] x) throws IllegalArgumentException {
|
||||||
|
|
||||||
// n is the row count of the input vector x
|
// n is the row count of the input vector x
|
||||||
final int n = x.length;
|
final int n = x.length;
|
||||||
|
|
Loading…
Reference in New Issue