Sebastien Brisard
ca70b29dd7
Utility method for testing for equality of expected double[] with RealVector.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1347392 13f79535-47bb-0310-9956-ffa450edef68
2012-06-07 05:05:33 +00:00
Gilles Sadowski
3e83661989
MATH-800
...
Updated userguide and added unit test.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1347211 13f79535-47bb-0310-9956-ffa450edef68
2012-06-06 23:48:49 +00:00
Gilles Sadowski
6525baf194
MATH-800
...
Deprecated "PolynomialFitter" and adapted unit test to use "CurveFitter"
directly.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1347184 13f79535-47bb-0310-9956-ffa450edef68
2012-06-06 22:33:42 +00:00
Sebastien Brisard
60c60e05f8
MATH-795: in RealVectorAbstractTest
...
- defined class variables data1 and data2 for the creation of test vectors.
Attention has been paid to "special" values, which are interspersed with
"normal" values (see e.g. sparse vectors).
- created testGetDimension().
- created testGetEntry().
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1346741 13f79535-47bb-0310-9956-ffa450edef68
2012-06-06 05:41:21 +00:00
Sebastien Brisard
a37a9384f1
MATH-795:
...
- some methods are not implemented by RealVector, so they should not be
tested: added @Ignore annotations in RealVectorTest.
- in RealVectorAbstractTest, extracted
+ testAppendVector()
+ testAppendScalar()
from testDataInOut().
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1346740 13f79535-47bb-0310-9956-ffa450edef68
2012-06-06 05:21:18 +00:00
Sebastien Brisard
1214de50cd
MATH-795: in RealVectorAbstractTest, added method getPreferredEntryValue()
...
which allows testing vectors with some entries set to a preferred value (e.g. 0
for sparse vectors).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1346729 13f79535-47bb-0310-9956-ffa450edef68
2012-06-06 03:56:02 +00:00
Sebastien Brisard
8d8ede74b5
MATH-795: removed unused imports.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1346725 13f79535-47bb-0310-9956-ffa450edef68
2012-06-06 03:23:39 +00:00
Sebastien Brisard
3f83d10d68
MATH-795: factored out
...
- testCombineToSelfPreconditionSameType()
- testCombineToSelfSameType()
- testCombineToSelfPreconditionMixeType()
- testCombineToSelfMixedTypes()
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1346723 13f79535-47bb-0310-9956-ffa450edef68
2012-06-06 03:19:18 +00:00
Sebastien Brisard
5a4f0a8171
MATH-795: factored out
...
- testCombinePreconditionSameType()
- testCombineSameType()
- testCombinePreconditionMixedType()
- testCombineMixedTypes()
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1346523 13f79535-47bb-0310-9956-ffa450edef68
2012-06-05 18:46:29 +00:00
Luc Maisonobe
118e94b5e9
Fixed a problem when building rotations from two pairs of vectors.
...
In very rare cases, due to numerical inaccuracies the computed quaternion
was not normalized (some examples went as high as 1.0e8) and even after
normalization, the quaternion was plain wrong.
JIRA: MATH-801
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1346513 13f79535-47bb-0310-9956-ffa450edef68
2012-06-05 18:26:02 +00:00
Sebastien Brisard
09d7f9a7b8
MATH-795: factored out testCosinePrecondition1(), testCosinePrecondition2() and
...
testCosinePrecondition3().
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1346475 13f79535-47bb-0310-9956-ffa450edef68
2012-06-05 17:11:15 +00:00
Sebastien Brisard
0f9932a5c5
MATH-795: factored out testCosine().
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1346471 13f79535-47bb-0310-9956-ffa450edef68
2012-06-05 17:08:20 +00:00
Sebastien Brisard
1d9b3006bf
MATH-795: factored out testMinMax().
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1346467 13f79535-47bb-0310-9956-ffa450edef68
2012-06-05 17:01:57 +00:00
Sebastien Brisard
ce5671bfb0
MATH-795: factored out testAddToEntry().
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1346245 13f79535-47bb-0310-9956-ffa450edef68
2012-06-05 05:45:41 +00:00
Sebastien Brisard
6d5b6eb0d1
MATH-795
...
- Factored out testSerial().
- In RealVectorTest, the vector returned by create(double[]) should really be
of type RealVectorTest.TestVectorImpl, as the minimal implementation is to be
tested. This causes some tests not to pass, they are skipped for the time
being (overriden from RealVectorAbstractTest, without @Test annotation). When
the tests in RealVectorAbstractTest are split, only the smaller tests which do
not make sense in the present context will be skipped.
- In RealVectorTest, the constructor of RealVectorTest.TestVectorImpl now
makes a defensive copy of the specified double[] array (see Javadoc of
+ RealVectorAbstractTest.create(double[]),
+ RealVectorAbstractTest.createAlien(double[]).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1346243 13f79535-47bb-0310-9956-ffa450edef68
2012-06-05 05:37:37 +00:00
Sebastien Brisard
a222b6b3ac
MATH-795: factoring out testPredicates().
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1346240 13f79535-47bb-0310-9956-ffa450edef68
2012-06-05 05:10:55 +00:00
Sebastien Brisard
ca6583feb8
MATH-795: factored out testOuterProduct() and testMisc().
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1345837 13f79535-47bb-0310-9956-ffa450edef68
2012-06-04 05:40:33 +00:00
Gilles Sadowski
8987aa0cfe
MATH-799
...
Deprecated default values for thresholds, and constructors that use
them. Scheduled for removal in CM 4.0.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1345803 13f79535-47bb-0310-9956-ffa450edef68
2012-06-03 23:24:43 +00:00
Gilles Sadowski
290002cb88
MATH-798
...
Test case provided by the reporter, adapted to become a unit test, shows
that the same convergence criterion generates a very similar solution by
both "LevenbergMarquardtOptimizer" and "GaussNewtonOptimizer".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1345538 13f79535-47bb-0310-9956-ffa450edef68
2012-06-02 17:53:05 +00:00
Sebastien Brisard
bbf926511f
In LocalizedFormats, removed ALPHA and BETA which are no longer used (MATH-796).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1345472 13f79535-47bb-0310-9956-ffa450edef68
2012-06-02 09:46:23 +00:00
Sebastien Brisard
9b78d1ed4c
MATH-795: factored out testBasicFunctions().
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1345443 13f79535-47bb-0310-9956-ffa450edef68
2012-06-02 05:34:40 +00:00
Luc Maisonobe
e0885ee01f
Replaced Characterization by an internal class in AbstractRegion.
...
Note that the suppresses class was a package private one and did not
belong to the public API. It was used only when building the boundaries
in the AbstractRegion class. The change simplifies the package and makes
better use of the existing visitor pattern.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1345328 13f79535-47bb-0310-9956-ffa450edef68
2012-06-01 20:02:04 +00:00
Sebastien Brisard
06c509b3b8
MATH-795: factored out testMapFunctions.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1344989 13f79535-47bb-0310-9956-ffa450edef68
2012-06-01 05:31:47 +00:00
Thomas Neidhart
47635bdb4a
[MATH-644] added unit test.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1344943 13f79535-47bb-0310-9956-ffa450edef68
2012-05-31 23:55:12 +00:00
Thomas Neidhart
8ed5527ee0
[MATH-644] added fix to changes.xml.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1344941 13f79535-47bb-0310-9956-ffa450edef68
2012-05-31 23:38:16 +00:00
Thomas Neidhart
a567246d1e
[MATH-644] cleanup of HypergeometricDistribution and symmetry fix for upperCumulativeProbability, reported by marzieh.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1344940 13f79535-47bb-0310-9956-ffa450edef68
2012-05-31 23:34:46 +00:00
Sebastien Brisard
ebb3d84410
Added MATH-791 to the list of changes.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1344574 13f79535-47bb-0310-9956-ffa450edef68
2012-05-31 06:13:33 +00:00
Sebastien Brisard
0fa29579f5
MATH-795: factored out testDataInOut().
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1344571 13f79535-47bb-0310-9956-ffa450edef68
2012-05-31 05:51:16 +00:00
Sebastien Brisard
a25ccdc4e6
ArrayRealVector.getEntry(int) did not throw the expected when called with an
...
invalid index.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1344570 13f79535-47bb-0310-9956-ffa450edef68
2012-05-31 05:49:03 +00:00
Luc Maisonobe
30c4a5bea5
Yet another attempt at computing hash for OrederedTuple.
...
JIRA: MATH-793
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1344166 13f79535-47bb-0310-9956-ffa450edef68
2012-05-30 09:22:58 +00:00
Sebastien Brisard
c7b488ff70
Added missing license.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1344104 13f79535-47bb-0310-9956-ffa450edef68
2012-05-30 05:25:46 +00:00
Sebastien Brisard
d5d66faf07
Created utility method to assert equality of two instances of RealVector.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1344102 13f79535-47bb-0310-9956-ffa450edef68
2012-05-30 05:13:28 +00:00
Thomas Neidhart
7db343eea9
Removed unnecessary import.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1344032 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 22:26:43 +00:00
Thomas Neidhart
60b1533975
Cleanup of OnePointCrossover.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1344031 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 22:26:22 +00:00
Thomas Neidhart
86e1cc0335
[MATH-777] added NPointCrossover policy, thanks to Reid Hochstedler.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1344030 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 22:24:24 +00:00
Luc Maisonobe
129e53d466
Use inline computation for OrderedTuple hash code.
...
JIRA: MATH-793
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1343920 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 18:59:54 +00:00
Luc Maisonobe
24c940f0b5
Typo.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1343694 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 12:21:27 +00:00
Luc Maisonobe
ab58ea0f84
Use proper conversion for primitive hashcode.
...
JIRA: MATH-793
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1343616 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 09:14:37 +00:00
Sebastien Brisard
7f97d1399b
MATH-792: implementation of the visitor pattern for ArrayRealVector (overrides
...
default implementation in RealVector).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1343547 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 05:36:19 +00:00
Sebastien Brisard
af78040b50
Added 'final' keyword.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1343546 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 05:34:41 +00:00
Phil Steitz
29c353915b
Added @Retry annotations for tests using secure generators, changed permutation test to use TestUtils Chisquare. JIRA: MATH-598.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1343382 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 19:59:42 +00:00
Phil Steitz
dc4dfa3b70
Improved javadoc, eliminated unused (and unlikely to ever be used) method.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1343370 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 19:31:54 +00:00
Sebastien Brisard
3246e6a84b
Reverted changes mistakenly committed in r1343342.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1343346 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 18:21:39 +00:00
Sebastien Brisard
e93b7b2c64
Reverted changes mistakenly committed in r1343342.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1343345 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 18:17:44 +00:00
Sebastien Brisard
209f22fc1c
MATH-792:
...
- definition of RealVectorChangingVisitor,
- various methods to visit the entries of a RealVector (entries are possibly modified),
- default implementation in RealVector abstract class,
- unit tests in abstract RealVectorAbstractClass.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1343342 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 18:03:44 +00:00
Sebastien Brisard
8aa20ce2a8
Javadoc typo.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1343339 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 17:53:37 +00:00
Sebastien Brisard
dfc64f8600
Removed explicit conversion from int to Integer.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1343293 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 15:39:57 +00:00
Sebastien Brisard
6c13bef9eb
Copy/paste typo (MATH-792).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1343219 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 12:17:38 +00:00
Sebastien Brisard
75f1113439
MATH-792: walkInXyzOrder methods are excluded from automatic testing (based on reflexion).
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1343217 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 12:09:41 +00:00
Sebastien Brisard
6b5659033e
MATH-792:
...
- various methods to visit the entries of a RealVector (entries are unmodified),
- default implementation in RealVector abstract class,
- unit tests in abstract RealVectorAbstractClass,
- all XxxRealVectorTest classes now extend RealVectorAbstractClass.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1343163 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 08:31:13 +00:00