From 033ac8e016b96b11b45962d9b8bbd8e22125b226 Mon Sep 17 00:00:00 2001 From: Luc Maisonobe Date: Thu, 15 May 2008 19:54:52 +0000 Subject: [PATCH] fixed formula in fast cosine transformer javadoc comments JIRA: MATH-205 git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@656814 13f79535-47bb-0310-9956-ffa450edef68 --- .../math/transform/FastCosineTransformer.java | 16 ++++++++-------- src/site/xdoc/changes.xml | 3 +++ 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/java/org/apache/commons/math/transform/FastCosineTransformer.java b/src/java/org/apache/commons/math/transform/FastCosineTransformer.java index a9e3f63f1..38b27be1c 100644 --- a/src/java/org/apache/commons/math/transform/FastCosineTransformer.java +++ b/src/java/org/apache/commons/math/transform/FastCosineTransformer.java @@ -53,7 +53,7 @@ public class FastCosineTransformer implements Serializable { * Transform the given real data set. *

* The formula is $ F_n = (1/2) [f_0 + (-1)^n f_N] + - * \Sigma_{k=0}^{N-1} f_k \cos(\pi nk/N) $ + * \Sigma_{k=1}^{N-1} f_k \cos(\pi nk/N) $ *

* * @param f the real data array to be transformed @@ -71,7 +71,7 @@ public class FastCosineTransformer implements Serializable { * Transform the given real function, sampled on the given interval. *

* The formula is $ F_n = (1/2) [f_0 + (-1)^n f_N] + - * \Sigma_{k=0}^{N-1} f_k \cos(\pi nk/N) $ + * \Sigma_{k=1}^{N-1} f_k \cos(\pi nk/N) $ *

* * @param f the function to be sampled and transformed @@ -94,7 +94,7 @@ public class FastCosineTransformer implements Serializable { * Transform the given real data set. *

* The formula is $ F_n = \sqrt{1/2N} [f_0 + (-1)^n f_N] + - * \sqrt{2/N} \Sigma_{k=0}^{N-1} f_k \cos(\pi nk/N) $ + * \sqrt{2/N} \Sigma_{k=1}^{N-1} f_k \cos(\pi nk/N) $ *

* * @param f the real data array to be transformed @@ -113,7 +113,7 @@ public class FastCosineTransformer implements Serializable { * Transform the given real function, sampled on the given interval. *

* The formula is $ F_n = \sqrt{1/2N} [f_0 + (-1)^n f_N] + - * \sqrt{2/N} \Sigma_{k=0}^{N-1} f_k \cos(\pi nk/N) $ + * \sqrt{2/N} \Sigma_{k=1}^{N-1} f_k \cos(\pi nk/N) $ * *

* @@ -138,7 +138,7 @@ public class FastCosineTransformer implements Serializable { * Inversely transform the given real data set. *

* The formula is $ f_k = (1/N) [F_0 + (-1)^k F_N] + - * (2/N) \Sigma_{n=0}^{N-1} F_n \cos(\pi nk/N) $ + * (2/N) \Sigma_{n=1}^{N-1} F_n \cos(\pi nk/N) $ *

* * @param f the real data array to be inversely transformed @@ -157,7 +157,7 @@ public class FastCosineTransformer implements Serializable { * Inversely transform the given real function, sampled on the given interval. *

* The formula is $ f_k = (1/N) [F_0 + (-1)^k F_N] + - * (2/N) \Sigma_{n=0}^{N-1} F_n \cos(\pi nk/N) $ + * (2/N) \Sigma_{n=1}^{N-1} F_n \cos(\pi nk/N) $ *

* * @param f the function to be sampled and inversely transformed @@ -181,7 +181,7 @@ public class FastCosineTransformer implements Serializable { * Inversely transform the given real data set. *

* The formula is $ f_k = \sqrt{1/2N} [F_0 + (-1)^k F_N] + - * \sqrt{2/N} \Sigma_{n=0}^{N-1} F_n \cos(\pi nk/N) $ + * \sqrt{2/N} \Sigma_{n=1}^{N-1} F_n \cos(\pi nk/N) $ *

* * @param f the real data array to be inversely transformed @@ -199,7 +199,7 @@ public class FastCosineTransformer implements Serializable { * Inversely transform the given real function, sampled on the given interval. *

* The formula is $ f_k = \sqrt{1/2N} [F_0 + (-1)^k F_N] + - * \sqrt{2/N} \Sigma_{n=0}^{N-1} F_n \cos(\pi nk/N) $ + * \sqrt{2/N} \Sigma_{n=1}^{N-1} F_n \cos(\pi nk/N) $ *

* * @param f the function to be sampled and inversely transformed diff --git a/src/site/xdoc/changes.xml b/src/site/xdoc/changes.xml index f088eafbf..cc87af402 100644 --- a/src/site/xdoc/changes.xml +++ b/src/site/xdoc/changes.xml @@ -41,6 +41,9 @@ Commons Math Release Notes + + Fixed formula in fast cosine transformer javadoc comments. + Javadoc and style fixes.