Sebastien Brisard
08ca1e7a0a
Refactoring following the promotion of embedded class o.a.c.m.transform.FastFourierTransformer.RootsOfUnity to standalone class o.a.c.m.complex.RootsOfUnity
...
- computeOmega(int n) now computes exp(2 * pi * i * k / n), k = 0, ..., n - 1, instead of exp(-2 * pi * i * k / n) (which was more natural for FFT).
- isForward() does not mean anything outside the FFT context. It has been renamed isCounterClockwise(), which refers to the way the roots of unity are ordered.
See MATH-677.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1238179 13f79535-47bb-0310-9956-ffa450edef68
2012-01-31 07:01:03 +00:00
Sebastien Brisard
74813500be
Moved private class o.a.c.m.transform.FastFourierTransformer.RootsOfUnity to o.a.c.m.complex.RootsOfUnity (MATH-677).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1237544 13f79535-47bb-0310-9956-ffa450edef68
2012-01-30 06:30:46 +00:00
Sebastien Brisard
271bbc9eb6
Changes to iterative linear solvers in package o.a.c.m.linear (MATH-735)
...
- PreconditionedIterativeLinearSolver is now provided with the *inverse* of the preconditioner as a RealLinearOperator, rather than the preconditioner as an InvertibleRealLinearOperator
- InvertibleRealLinearOperator has become superfluous and is removed
- various javadoc fixes
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1237229 13f79535-47bb-0310-9956-ffa450edef68
2012-01-29 09:39:30 +00:00
Sebastien Brisard
7319e333d6
Added method o.a.c.m.linear.IterativeLinearSolverEvent.getNormOfResidual() (MATH-735).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1237069 13f79535-47bb-0310-9956-ffa450edef68
2012-01-28 15:10:42 +00:00
Sebastien Brisard
908d8adc98
Added method getIterations() in o.a.c.m.utils.IterationEvent (MATH-735).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1237056 13f79535-47bb-0310-9956-ffa450edef68
2012-01-28 13:19:14 +00:00
Sebastien Brisard
14f26e00eb
In TriangularDistribution, changed the value of the solver absolute accuracy, and updated Javadoc accordingly (MATH-731).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1237026 13f79535-47bb-0310-9956-ffa450edef68
2012-01-28 08:50:09 +00:00
Gilles Sadowski
4fdd797b3b
Math-707
...
Renamed "TrivariateRealFunction" to "TrivariateFunction".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1236932 13f79535-47bb-0310-9956-ffa450edef68
2012-01-28 00:06:21 +00:00
Gilles Sadowski
a7e7419446
MATH-707
...
Renamed "BivariateRealFunction" to "BivariateFunction".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1236676 13f79535-47bb-0310-9956-ffa450edef68
2012-01-27 13:23:12 +00:00
Sebastien Brisard
95d15eff45
Introduced tests to guard against overflow (MATH-722). Corrected Javadoc and updated unit tests accordingly.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1236548 13f79535-47bb-0310-9956-ffa450edef68
2012-01-27 07:00:19 +00:00
Sebastian Bazley
7dc0c33e7c
MATH-650 FastMath has static code which slows the first access to FastMath
...
Protect array entries against malicious or accidental corruption by returning a clone
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1235784 13f79535-47bb-0310-9956-ffa450edef68
2012-01-25 14:56:50 +00:00
Thomas Neidhart
58133c8612
Fixed localized exception messages according to review of Gilles
...
JIRA: MATH-575
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1235197 13f79535-47bb-0310-9956-ffa450edef68
2012-01-24 10:17:13 +00:00
Thomas Neidhart
6f0c74e62a
Added localized messages for exceptions thrown in the genetics package,
...
improved javadoc, added final for parameters.
JIRA: MATH-575
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1235038 13f79535-47bb-0310-9956-ffa450edef68
2012-01-23 22:26:37 +00:00
Gilles Sadowski
a04a6c16c6
MATH-707
...
Removed "Real" from class names in package "o.a.c.m.analysis.solvers".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1234784 13f79535-47bb-0310-9956-ffa450edef68
2012-01-23 13:33:30 +00:00
Sebastien Brisard
cd57ad4c3d
Widened the scope of tests for transform.FastSineTransformer (MATH-677).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1234685 13f79535-47bb-0310-9956-ffa450edef68
2012-01-23 06:47:28 +00:00
Thomas Neidhart
427ba1c6d3
Added entry in changes.xml for MATH-652.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1234499 13f79535-47bb-0310-9956-ffa450edef68
2012-01-22 12:19:21 +00:00
Thomas Neidhart
5191e1ddc8
Fixed faulty test for zero in TridiagonalTransformer
...
JIRA: MATH-652
Reported and patched by Greg Sterijevski
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1234486 13f79535-47bb-0310-9956-ffa450edef68
2012-01-22 11:19:26 +00:00
Sebastien Brisard
7ef57fba61
Widened the scope of tests for transform.FastCosineTransformer (MATH-677).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1234136 13f79535-47bb-0310-9956-ffa450edef68
2012-01-20 21:04:29 +00:00
Thomas Neidhart
1661e9dec5
Added myself to pom.xml as developer.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1233608 13f79535-47bb-0310-9956-ffa450edef68
2012-01-19 22:29:08 +00:00
Gilles Sadowski
10d1ba8b04
Code and Javadoc cleanup.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1232948 13f79535-47bb-0310-9956-ffa450edef68
2012-01-18 16:22:48 +00:00
Gilles Sadowski
9424a28a30
Code cleanup: One-letter instance variables should not be used.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1232899 13f79535-47bb-0310-9956-ffa450edef68
2012-01-18 14:23:26 +00:00
Gilles Sadowski
41737b05da
Javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1232848 13f79535-47bb-0310-9956-ffa450edef68
2012-01-18 12:00:03 +00:00
Gilles Sadowski
27dc50b397
MATH-664
...
Replaced "LUDecomposition" by "QRDecomposition" in the covariance matrix
computation.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1232846 13f79535-47bb-0310-9956-ffa450edef68
2012-01-18 11:56:48 +00:00
Sebastien Brisard
920798fb85
Test was no longer expecting the correct exception following r1232759.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1232773 13f79535-47bb-0310-9956-ffa450edef68
2012-01-18 07:50:21 +00:00
Sebastien Brisard
47bbab8814
Widened the scope of tests for transform.FastFourierTransformer (MATH-677).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1232767 13f79535-47bb-0310-9956-ffa450edef68
2012-01-18 07:17:48 +00:00
Sebastien Brisard
99c798e46f
In analysis.FunctionUtils.sample, changed the exception to be thrown when bounds are invalid.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1232759 13f79535-47bb-0310-9956-ffa450edef68
2012-01-18 06:38:04 +00:00
Sebastien Brisard
47a87ce229
In LogNormalDistribution and LogNormalDistributionTest
...
- "mean" (of the underlying normal distribution) is now called "scale"
- "standard deviation" (of the underlying normal distribution) is now called "shape"
- in the javadoc, removed html links that point to internal anchors.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1232755 13f79535-47bb-0310-9956-ffa450edef68
2012-01-18 06:17:05 +00:00
Sebastien Brisard
e2c0e16bff
Javadoc (MATH-733).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1232325 13f79535-47bb-0310-9956-ffa450edef68
2012-01-17 07:22:42 +00:00
Sebastien Brisard
64230d2b42
Implementation of log-normal distributions (MATH-733). Patch contributed by Dennis Hendriks.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1232324 13f79535-47bb-0310-9956-ffa450edef68
2012-01-17 07:12:02 +00:00
Sebastien Brisard
29cd56b6f4
Removed unchecked exceptions from method signatures. See
...
- Commons-Dev mailing list http://mail-archives.apache.org/mod_mbox/commons-dev/201201.mbox/%3C20120113105913.GM6537%40dusk.harfang.homelinux.org%3E
- "Effective Java, second edition", item 62.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1231847 13f79535-47bb-0310-9956-ffa450edef68
2012-01-16 06:38:27 +00:00
Gilles Sadowski
d96758d1c6
Added a test.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1231133 13f79535-47bb-0310-9956-ffa450edef68
2012-01-13 15:33:34 +00:00
Sebastien Brisard
d6be0f5005
Removed unnecessary import (MATH-731).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1230953 13f79535-47bb-0310-9956-ffa450edef68
2012-01-13 09:23:35 +00:00
Sebastien Brisard
946b37c737
Javadoc
...
Added optional support for transposition of linear operators.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1230907 13f79535-47bb-0310-9956-ffa450edef68
2012-01-13 07:11:19 +00:00
Sebastien Brisard
ffbb85d329
Javadoc
...
Made sure that exceptions are documented in both javadoc and method signatures.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1230906 13f79535-47bb-0310-9956-ffa450edef68
2012-01-13 07:04:10 +00:00
Gilles Sadowski
d61dba0cf6
MATH-664
...
Added a user-defined singularity threshold (with 0 as default to retain
previous behaviour).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1230509 13f79535-47bb-0310-9956-ffa450edef68
2012-01-12 13:05:46 +00:00
Sebastien Brisard
905a32a8f4
Removed invocations of some Java 1.6 methods (MATH-731).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1230435 13f79535-47bb-0310-9956-ffa450edef68
2012-01-12 08:08:29 +00:00
Sebastien Brisard
54755f169e
Implementation of continuous triangular distributions (MATH-731). Patch contributed by Dennis Hendriks.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1230419 13f79535-47bb-0310-9956-ffa450edef68
2012-01-12 07:01:43 +00:00
Sebastien Brisard
e9a4161615
More thorough testing of FastFourierTransformer (MATH-677).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1229905 13f79535-47bb-0310-9956-ffa450edef68
2012-01-11 06:49:33 +00:00
Sebastien Brisard
744998a737
Javadoc (MATH-730).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1229050 13f79535-47bb-0310-9956-ffa450edef68
2012-01-09 07:59:06 +00:00
Sebastien Brisard
d5c397414b
Javadoc (MATH-730).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1229048 13f79535-47bb-0310-9956-ffa450edef68
2012-01-09 07:48:27 +00:00
Sebastien Brisard
11d47fb1e5
Javadoc (MATH-730).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1229046 13f79535-47bb-0310-9956-ffa450edef68
2012-01-09 07:38:19 +00:00
Sebastien Brisard
9971405cdf
Implementation of uniform distributions (real + integer). See MATH-730. Patch contributed by Dennis Hendriks.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1229042 13f79535-47bb-0310-9956-ffa450edef68
2012-01-09 07:02:08 +00:00
Sebastien Brisard
a244c199d4
Updated serialVersionUID. Related to MATH-677.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1227477 13f79535-47bb-0310-9956-ffa450edef68
2012-01-05 04:15:09 +00:00
Sebastien Brisard
74412ef81d
Javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1227476 13f79535-47bb-0310-9956-ffa450edef68
2012-01-05 04:09:55 +00:00
Sebastien Brisard
31bbb41c5e
Moved
...
- transform.FastFourierTransformer.scaleArray(Complex[], double)
- transform.FastFourierTransformer.scaleArray(double[], double)
to newly created class transform.TransformUtils.
Related to MATH-677.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1227475 13f79535-47bb-0310-9956-ffa450edef68
2012-01-05 04:08:18 +00:00
Sebastien Brisard
cfe3c4c814
Inlined
...
- transform.FastFourierTransformer.verifyDataSet(double[])
- transform.FastFourierTransformer.verifyDataSet(Object[])
to improve readability.
Related to MATH-677.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1227470 13f79535-47bb-0310-9956-ffa450edef68
2012-01-05 03:51:56 +00:00
Sebastien Brisard
0373853862
Moved
...
transform.FastFourierTransformer.sample(UnivariateFunction, double, double, int)
to
analysis.FunctionUtils.sample(UnivariateFunction, double, double, int)
and created simple unit tests.
Related to MATH-677.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1227468 13f79535-47bb-0310-9956-ffa450edef68
2012-01-05 03:46:47 +00:00
Sebastien Brisard
a4d7e7c86d
Moved o.a.c.m.transform.FastFourierTransformer.isPowerOf2 to o.a.c.m.util.ArithmeticUtils.isPowerOfTwo (MATH-677).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1227042 13f79535-47bb-0310-9956-ffa450edef68
2012-01-04 03:47:46 +00:00
Sebastien Brisard
7f6912730e
Javadoc (MATH-677).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1227015 13f79535-47bb-0310-9956-ffa450edef68
2012-01-04 01:31:23 +00:00
Sebastien Brisard
2689ee367b
Removed references to deprecated MathRuntimeException (MATH-677).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1227008 13f79535-47bb-0310-9956-ffa450edef68
2012-01-04 00:57:19 +00:00
Sebastien Brisard
2d16e3fe0a
Removed references to deprecated MathRuntimeException (MATH-677).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1226669 13f79535-47bb-0310-9956-ffa450edef68
2012-01-03 06:29:17 +00:00