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
Luc Maisonobe
514680c03e
fixed checkstyle errors about utility classes constructors
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@811780 13f79535-47bb-0310-9956-ffa450edef68
2009-09-06 08:38:59 +00:00
Phil Steitz
208aff49c1
Added check for System.out.println stmts in code.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@811691 13f79535-47bb-0310-9956-ffa450edef68
2009-09-05 18:11:50 +00:00
Phil Steitz
0202b17e47
Added check for newline at end of file.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@811690 13f79535-47bb-0310-9956-ffa450edef68
2009-09-05 18:00:17 +00:00
Phil Steitz
dc9278a2aa
Removed trailing spaces.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@811685 13f79535-47bb-0310-9956-ffa450edef68
2009-09-05 17:36:48 +00:00
Luc Maisonobe
abb6fb94bd
fixed misleading number formats in error messages for adaptive stepsize integrators
...
JIRA: MATH-291
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@811328 13f79535-47bb-0310-9956-ffa450edef68
2009-09-04 09:44:54 +00:00
Luc Maisonobe
c4ed905d02
replaced a catch for Exception by a catch for NumberFormatException
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@810243 13f79535-47bb-0310-9956-ffa450edef68
2009-09-01 21:14:35 +00:00
Luc Maisonobe
f21c639f0a
removed unused imports
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@810239 13f79535-47bb-0310-9956-ffa450edef68
2009-09-01 21:04:38 +00:00
Luc Maisonobe
0283b0c935
tighten checkstyle rules for hidden fields
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@810238 13f79535-47bb-0310-9956-ffa450edef68
2009-09-01 21:02:59 +00:00
Luc Maisonobe
de33e91191
handle an impossible case consistently with other parts of the library
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@810206 13f79535-47bb-0310-9956-ffa450edef68
2009-09-01 20:05:22 +00:00
Luc Maisonobe
0234e46518
tighten rules for constants naming conventions
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@810196 13f79535-47bb-0310-9956-ffa450edef68
2009-09-01 19:47:46 +00:00
Luc Maisonobe
a3217e90b9
tighten checkstyle rules for switch statements
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@810179 13f79535-47bb-0310-9956-ffa450edef68
2009-09-01 19:12:50 +00:00
Luc Maisonobe
5444ff3879
Added a check for utility class constructor which must be private to prevent instantiation
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@810173 13f79535-47bb-0310-9956-ffa450edef68
2009-09-01 19:03:19 +00:00
Luc Maisonobe
a43d721f85
tighten checkstyle rules for import statements
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@809744 13f79535-47bb-0310-9956-ffa450edef68
2009-08-31 20:59:15 +00:00
Luc Maisonobe
0dff051c05
added missing javadoc parameter
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@809725 13f79535-47bb-0310-9956-ffa450edef68
2009-08-31 20:12:54 +00:00
Phil Steitz
dd63599d2a
Added first batch of weighted statistics
...
* mean
* sum
* product
* variance
JIRA: MATH-287
Thanks to Matthew Rowles
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@809448 13f79535-47bb-0310-9956-ffa450edef68
2009-08-31 01:56:09 +00:00
Luc Maisonobe
b91ed85747
translated new messages and added variable part in format
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@809404 13f79535-47bb-0310-9956-ffa450edef68
2009-08-30 19:21:29 +00:00
Phil Steitz
e89db38df8
Added normalizeArray method to MathUtils.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@809394 13f79535-47bb-0310-9956-ffa450edef68
2009-08-30 18:10:16 +00:00
Phil Steitz
ad6960636a
Refer to simplex solver in issues related to this component.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@809393 13f79535-47bb-0310-9956-ffa450edef68
2009-08-30 18:03:16 +00:00
Luc Maisonobe
57b29f4a43
removed unused import
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@808313 13f79535-47bb-0310-9956-ffa450edef68
2009-08-27 08:06:43 +00:00
Luc Maisonobe
62c09640bb
added tests for both the <= and the >= versions of the constraints
...
one leads to 0 as a solution, the other one leads to no feasible solution
JIRA: MATH-290
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@808312 13f79535-47bb-0310-9956-ffa450edef68
2009-08-27 08:05:01 +00:00
Luc Maisonobe
24e9fc91c7
removed an unused argument in a private method
...
JIRA: MATH-289
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@808311 13f79535-47bb-0310-9956-ffa450edef68
2009-08-27 07:57:51 +00:00
Luc Maisonobe
b22b39f46b
fixed weird spacing as per last patch from Ben
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@807929 13f79535-47bb-0310-9956-ffa450edef68
2009-08-26 08:54:42 +00:00
Luc Maisonobe
b01fcc31b9
fixed an error with negative constraints and unfeasible solution
...
JIRA: MATH-290
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@807923 13f79535-47bb-0310-9956-ffa450edef68
2009-08-26 08:43:27 +00:00
Luc Maisonobe
38983e8207
fixed an error induced by zero entries in simplex solver
...
JIRA: MATH-288
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@807738 13f79535-47bb-0310-9956-ffa450edef68
2009-08-25 18:07:13 +00:00
Luc Maisonobe
dbdff0758b
fixed an error leading the simplex solver to compute the right solution but return another one
...
JIRA: MATH-286
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@806753 13f79535-47bb-0310-9956-ffa450edef68
2009-08-21 23:07:42 +00:00