Author: celestin
Date: Tue Dec 13 07:44:52 2011
New Revision: 1213585
URL: http://svn.apache.org/viewvc?rev=1213585&view=rev
Log:
Correction to the javadoc of distribution.FastCosineTransformer (MATH-677).
Modified:
commons/proper/math/trunk/src/main/java/org/apache/commons/math/transform/FastCosineTransformer.java
Modified:
commons/proper/math/trunk/src/main/java/org/apache/commons/math/transform/FastCosineTransformer.java
URL:
http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/transform/FastCosineTransformer.java?rev=1213585&r1=1213584&r2=1213585&view=diff
==============================================================================
---
commons/proper/math/trunk/src/main/java/org/apache/commons/math/transform/FastCosineTransformer.java
(original)
+++
commons/proper/math/trunk/src/main/java/org/apache/commons/math/transform/FastCosineTransformer.java
Tue Dec 13 07:44:52 2011
@@ -38,7 +38,7 @@ import org.apache.commons.math.util.Fast
* DCT-I is equivalent to DFT of an <em>even extension</em> of the data series.
* More precisely, if x<sub>0</sub>, …, x<sub>N-1</sub> is the data set
* to be cosine transformed, the extended data set
- * x<sub>0</sub><sup>#</sup>, …, x<sub>2N-2</sub><sup>#</sup>
+ * x<sub>0</sub><sup>#</sup>, …, x<sub>2N-3</sub><sup>#</sup>
* is defined as follows
* <ul>
* <li>x<sub>k</sub><sup>#</sup> = x<sub>k</sub> if 0 ≤ k < N,</li>
@@ -50,7 +50,7 @@ import org.apache.commons.math.util.Fast
* Then, the "standard" DCT-I (as returned by {@link #create()}) of the real
* data set x<sub>0</sub>, …, x<sub>N-1</sub> is equal to
* <em>half</em> of the N first elements of the DFT of the extended data set
- * x<sub>0</sub><sup>#</sup>, …, x<sub>2N-2</sub><sup>#</sup>.
+ * x<sub>0</sub><sup>#</sup>, …, x<sub>2N-3</sub><sup>#</sup>.
* </p>
* <p>
* The present implementation of the fast cosine transform requires the length