2195 Commits

Author SHA1 Message Date
Phil Steitz
9e6576e7cd Added toString.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@885013 13f79535-47bb-0310-9956-ffa450edef68
2009-11-27 21:05:04 +00:00
Phil Steitz
cab28ac044 Fixed test case for number of generations evolved.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@885009 13f79535-47bb-0310-9956-ffa450edef68
2009-11-27 21:03:34 +00:00
Phil Steitz
80f4084139 Added generationsEvolved property to GeneticAlgorithm to track the number
of generations evolved by the evolve() method before reaching the StoppingCondition.
JIRA: MATH-315
Reported and patched by Mikkel Meyer Andersen

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@883132 13f79535-47bb-0310-9956-ffa450edef68
2009-11-22 19:50:54 +00:00
Phil Steitz
bf451895d5 Added test includes to cover tests with nonstandard names in genetics package.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@883127 13f79535-47bb-0310-9956-ffa450edef68
2009-11-22 19:27:10 +00:00
Luc Maisonobe
713a4fdd73 fixed yet another eigen decomposition bug identified, debugged and fixed by Dimitri!
Many thanks to him.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@833740 13f79535-47bb-0310-9956-ffa450edef68
2009-11-07 19:57:02 +00:00
Luc Maisonobe
83f18d5299 Fixed an index computation error in eigen decomposition.
Once again, kudos to Dimitri for debugging this.
JIRA: MATH-318

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@833433 13f79535-47bb-0310-9956-ffa450edef68
2009-11-06 15:11:57 +00:00
Luc Maisonobe
c78a0e3b00 fixed an ArrayIndexOutOfBoundsException
Kudos to Dimitri who debugged this mess of fortran/java array indices translation
JIRA: MATH-308

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@832577 13f79535-47bb-0310-9956-ffa450edef68
2009-11-03 22:04:08 +00:00
Phil Steitz
0596e3145c Fixed parameter test in RandomDataImpl#nextExponential. JIRA: MATH-309.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@831510 13f79535-47bb-0310-9956-ffa450edef68
2009-10-31 02:30:18 +00:00
Luc Maisonobe
90f6eba156 fixed findbugs false positive
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@830772 13f79535-47bb-0310-9956-ffa450edef68
2009-10-28 21:54:13 +00:00
Luc Maisonobe
2741a781e9 fixed checkstyle errors
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@830771 13f79535-47bb-0310-9956-ffa450edef68
2009-10-28 21:53:35 +00:00
Luc Maisonobe
bf9f4cf20e changed TWO_PI visibility to public
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@830770 13f79535-47bb-0310-9956-ffa450edef68
2009-10-28 21:52:39 +00:00
Brent Worden
19f633c6ae MATH-311. Changed probability calculations for Binomial, Poisson, and Hypergeometric distributions to use Catherine Loader's saddle point approximations
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@830745 13f79535-47bb-0310-9956-ffa450edef68
2009-10-28 19:59:21 +00:00
Phil Steitz
c09247c09b Removed dead code, improved test coverage. Dead code pointed out in JIRA: MATH-306. Thanks to Joerg Huber.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@830044 13f79535-47bb-0310-9956-ffa450edef68
2009-10-27 01:32:19 +00:00
Niall Pemberton
cdfddcc20a Update to commons-parent-12
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@827830 13f79535-47bb-0310-9956-ffa450edef68
2009-10-20 23:00:29 +00:00
Phil Steitz
c30aac9ad6 Javadoc only. Dropped 'now defunct' from JAMA attribution.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@826627 13f79535-47bb-0310-9956-ffa450edef68
2009-10-19 10:27:47 +00:00
William Barker
adbe097b2b documenting change
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@826560 13f79535-47bb-0310-9956-ffa450edef68
2009-10-19 00:03:46 +00:00
William Barker
becc8d9704 Fix for possible zero divide on an indefinite matrix
Fix for: MATH-297


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@826550 13f79535-47bb-0310-9956-ffa450edef68
2009-10-18 23:29:37 +00:00
Luc Maisonobe
ddc5554353 fixed typo
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@826232 13f79535-47bb-0310-9956-ffa450edef68
2009-10-17 11:25:14 +00:00
Luc Maisonobe
a667bf2834 replaced custom linear solve computation by use of the linear package features
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@825925 13f79535-47bb-0310-9956-ffa450edef68
2009-10-16 15:11:47 +00:00
Luc Maisonobe
0cb01403a1 tighten checkstyle rules: declaring multiple variables in one statement is now forbidden
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@825919 13f79535-47bb-0310-9956-ffa450edef68
2009-10-16 14:51:55 +00:00
Luc Maisonobe
88885e7a1c fixed a checkstyle warning
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@825917 13f79535-47bb-0310-9956-ffa450edef68
2009-10-16 14:47:27 +00:00
Luc Maisonobe
925305f0fa removed a Math.min computation that could be avoided
improved javadoc 

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@825784 13f79535-47bb-0310-9956-ffa450edef68
2009-10-16 07:12:56 +00:00
Luc Maisonobe
dd9b7b477a improved array structure in Romberg integrator
since the integrator uses only two rows at a time, we allocate only two arrays and reuse them

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@824822 13f79535-47bb-0310-9956-ffa450edef68
2009-10-13 15:56:51 +00:00
Luc Maisonobe
e975825996 tightened checkstyle rules
catching top level exceptions (Exception, Throwable and RuntimeException) is now forbidden

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@824783 13f79535-47bb-0310-9956-ffa450edef68
2009-10-13 14:30:27 +00:00
Luc Maisonobe
50e9a948aa fixed checkstyle warnings
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@824760 13f79535-47bb-0310-9956-ffa450edef68
2009-10-13 13:48:52 +00:00
Phil Steitz
2c8a114f76 Implemented alternative algorithm for generating poisson deviates when the mean is large. JIRA: MATH-294.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@824214 13f79535-47bb-0310-9956-ffa450edef68
2009-10-12 02:04:06 +00:00
Phil Steitz
5fb5e80a15 Added (disabled) test case demonstrating MATH-282 impact on poisson distribution for large means.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@824183 13f79535-47bb-0310-9956-ffa450edef68
2009-10-11 21:45:55 +00:00
Luc Maisonobe
f5398ad3cf delay message build until really needed
this allows not wasting time dealing with resources, strings and formatting when the exception is discarded and its message not used
thanks to Gilles for the suggestion

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@822850 13f79535-47bb-0310-9956-ffa450edef68
2009-10-07 18:56:42 +00:00
Luc Maisonobe
2ed606cfc0 fixed javadoc typo
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@822454 13f79535-47bb-0310-9956-ffa450edef68
2009-10-06 19:29:52 +00:00
Luc Maisonobe
798518841b fixed missing throw
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@822429 13f79535-47bb-0310-9956-ffa450edef68
2009-10-06 18:53:57 +00:00
Phil Steitz
340943f1f5 Dump expected/observed bin counts on poisson consistency test failure.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@822205 13f79535-47bb-0310-9956-ffa450edef68
2009-10-06 10:34:45 +00:00
Luc Maisonobe
3cabfc5846 added multidimensional interpolation using the microsphere algorithm.
JIRA: MATH-300

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@821626 13f79535-47bb-0310-9956-ffa450edef68
2009-10-04 21:57:30 +00:00
Phil Steitz
a72bbf44cf Added goodness of fit test for poisson deviates.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@819492 13f79535-47bb-0310-9956-ffa450edef68
2009-09-28 10:36:46 +00:00
Luc Maisonobe
7dd8773ea3 fixed checkstyle warning on missing javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@818943 13f79535-47bb-0310-9956-ffa450edef68
2009-09-25 18:36:55 +00:00
Luc Maisonobe
d98e430b04 fixed wrong results in Loess interpolator
also added a way to set weights for smoothing
JIRA: MATH-296

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@818942 13f79535-47bb-0310-9956-ffa450edef68
2009-09-25 18:33:34 +00:00
Phil Steitz
97fb25eb35 Commit change inadvertenly omitted from r817128. JIRA: MATH-298
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@817132 13f79535-47bb-0310-9956-ffa450edef68
2009-09-21 02:13:39 +00:00
Phil Steitz
e9771d7eb5 Fixed implementation of EmpiricalDistributionImpl#getUpperBounds to match interface
contract.  Added getGeneratorUpperBounds method to EmpiricalDistributionImpl providing previous behavior.

Jira: Math-298

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@817128 13f79535-47bb-0310-9956-ffa450edef68
2009-09-21 01:30:53 +00:00
Luc Maisonobe
5fbeb731b9 cleaned up tests wrt Junit 4
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@816654 13f79535-47bb-0310-9956-ffa450edef68
2009-09-18 14:39:18 +00:00
Luc Maisonobe
59a0da9c4c Fixed a OutOfBoundException in simplex solver when some constraints are tight
JIRA: MATH-293

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@813301 13f79535-47bb-0310-9956-ffa450edef68
2009-09-10 08:20:28 +00:00
Luc Maisonobe
3cf3b82b72 renamed a test after a change in the tested class
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@813296 13f79535-47bb-0310-9956-ffa450edef68
2009-09-10 08:16:24 +00:00
Luc Maisonobe
d2ba1651ed applied Andrea's patch to improve test
JIRA: MATH-286

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@812921 13f79535-47bb-0310-9956-ffa450edef68
2009-09-09 12:22:14 +00:00
Sebastian Bazley
3c6d5dff6e MATH-292 TestUtils.assertRelativelyEquals() generates misleading error on failure
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@812871 13f79535-47bb-0310-9956-ffa450edef68
2009-09-09 10:11:15 +00:00
Luc Maisonobe
aa91ffbe33 applied Benjamin's patch from 2009-09-08
warning: I had to update the expected matrix in SimplexTableauTest.testdiscardArtificialVariables

JIRA: MATH-286

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@812831 13f79535-47bb-0310-9956-ffa450edef68
2009-09-09 08:48:03 +00:00
Luc Maisonobe
e5a77a7651 added Benjamin's patch from 2009-09-07
JIRA: MATH-286

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@812390 13f79535-47bb-0310-9956-ffa450edef68
2009-09-08 08:40:12 +00:00
Sebastian Bazley
53a9ee3979 Clarify test failure messages
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@812147 13f79535-47bb-0310-9956-ffa450edef68
2009-09-07 14:08:16 +00:00
Sebastian Bazley
8961047173 Clarify parse test messages
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@811897 13f79535-47bb-0310-9956-ffa450edef68
2009-09-06 21:26:18 +00:00
Luc Maisonobe
5a63bb398c removed unnecessary parentheses
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@811833 13f79535-47bb-0310-9956-ffa450edef68
2009-09-06 16:27:50 +00:00
Luc Maisonobe
f8254ebbd3 use standard declaration order rules
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@811827 13f79535-47bb-0310-9956-ffa450edef68
2009-09-06 15:32:50 +00:00
Luc Maisonobe
54c0e73219 tighten rules for public/private/abstract/final/... modifiers
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@811786 13f79535-47bb-0310-9956-ffa450edef68
2009-09-06 09:36:08 +00:00
Luc Maisonobe
d485dca2ce added checkstyle rule to forbid @authors
authors should be listed in the pom file

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@811783 13f79535-47bb-0310-9956-ffa450edef68
2009-09-06 08:56:58 +00:00