Commit Graph

1838 Commits

Author SHA1 Message Date
William Barker b5dd7a9c36 Adding unit test for SparseFieldVector
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@771165 13f79535-47bb-0310-9956-ffa450edef68
2009-05-04 02:59:30 +00:00
William Barker e96ec32bb5 Adding equals and hashCode
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@771164 13f79535-47bb-0310-9956-ffa450edef68
2009-05-04 02:55:21 +00:00
William Barker f479cc70b8 Adding sparse field implememtations
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@771132 13f79535-47bb-0310-9956-ffa450edef68
2009-05-03 22:27:25 +00:00
Luc Maisonobe efaead82f7 improved error messages
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@771097 13f79535-47bb-0310-9956-ffa450edef68
2009-05-03 18:24:31 +00:00
Luc Maisonobe ecaeaadb71 fixed various checkstyle and findbugs errors
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@771076 13f79535-47bb-0310-9956-ffa450edef68
2009-05-03 16:28:48 +00:00
Luc Maisonobe 28257de180 added a clustering package with an implementation of k-means++
JIRA: MATH-266

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@770979 13f79535-47bb-0310-9956-ffa450edef68
2009-05-02 19:34:51 +00:00
Luc Maisonobe d94d0a556a Added distance1, distance and distanceInf utility methods for double and int arrays in MathUtils
JIRA: MATH-265

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@770798 13f79535-47bb-0310-9956-ffa450edef68
2009-05-01 19:29:44 +00:00
Luc Maisonobe 6f4d87e6d8 updated documentation for ODE after recent changes
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@770213 13f79535-47bb-0310-9956-ffa450edef68
2009-04-30 13:06:04 +00:00
Luc Maisonobe d34584bb62 simplified Nordsieck transformer
extended its domain to handle several layouts for multistep state

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@770179 13f79535-47bb-0310-9956-ffa450edef68
2009-04-30 12:05:22 +00:00
Luc Maisonobe f692b4d384 added getNorm1, getNormInf, distance1 and distanceInf to the Vector3D class
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@769880 13f79535-47bb-0310-9956-ffa450edef68
2009-04-29 19:10:01 +00:00
Luc Maisonobe 7233afeeea typo in HTML 4 entity
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@769871 13f79535-47bb-0310-9956-ffa450edef68
2009-04-29 18:49:30 +00:00
Luc Maisonobe ceacae9a3c Added an utility equality method between double numbers using tolerance
in ulps (Units in Last Position) 
JIRA: MATH-264

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@769867 13f79535-47bb-0310-9956-ffa450edef68
2009-04-29 18:33:59 +00:00
Luc Maisonobe b2507a6759 typo
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@769360 13f79535-47bb-0310-9956-ffa450edef68
2009-04-28 12:20:11 +00:00
William Barker e358ec6f37 Forgot to include licence :(
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@769226 13f79535-47bb-0310-9956-ffa450edef68
2009-04-28 02:58:31 +00:00
William Barker d81b618675 Adding unit test for OpenIntToFieldHashMap
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@769224 13f79535-47bb-0310-9956-ffa450edef68
2009-04-28 02:42:57 +00:00
Luc Maisonobe 0817c01f14 typo
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@769107 13f79535-47bb-0310-9956-ffa450edef68
2009-04-27 19:06:29 +00:00
Luc Maisonobe 6adb238e5a event handlers in ODE now also provide the switching function variation
(increasing/decreasing) when an event occurs

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@769039 13f79535-47bb-0310-9956-ffa450edef68
2009-04-27 16:04:03 +00:00
Luc Maisonobe 7d55da9f31 reduced test size
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@769003 13f79535-47bb-0310-9956-ffa450edef68
2009-04-27 14:32:25 +00:00
Phil Steitz 4566fcf22c Added AggregateSummaryStatistics class to support aggregation of SummaryStatistics.
JIRA: MATH-224
Reported by Andre Panisson
Patched by John Bollinger


git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@768921 13f79535-47bb-0310-9956-ffa450edef68
2009-04-27 10:51:52 +00:00
Phil Steitz 6f47f883d6 Improved error messages.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@768727 13f79535-47bb-0310-9956-ffa450edef68
2009-04-26 17:14:59 +00:00
William Barker 1b2f478ffb Javadoc fixes, sorry for the noise
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@768625 13f79535-47bb-0310-9956-ffa450edef68
2009-04-25 23:28:16 +00:00
William Barker 171d7e0991 Need to find out why autoprops isn't working
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@768622 13f79535-47bb-0310-9956-ffa450edef68
2009-04-25 22:55:09 +00:00
William Barker b251802f43 Adding backing class for sparse Field vectors and matricies
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@768620 13f79535-47bb-0310-9956-ffa450edef68
2009-04-25 22:49:38 +00:00
Luc Maisonobe 881e5114bf added javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@768591 13f79535-47bb-0310-9956-ffa450edef68
2009-04-25 19:39:38 +00:00
Luc Maisonobe 97bbb9cf25 fixed an Adams-Moulton order error, it was one unit too large
and inconsistent with the order of the underlying predictor

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@768565 13f79535-47bb-0310-9956-ffa450edef68
2009-04-25 16:59:19 +00:00
Sebastian Bazley 5548ffccb2 Javadoc fixes
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@768449 13f79535-47bb-0310-9956-ffa450edef68
2009-04-25 02:01:23 +00:00
Sebastian Bazley e5ae4a4127 Unnecessary casts
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@768448 13f79535-47bb-0310-9956-ffa450edef68
2009-04-25 02:00:44 +00:00
Sebastian Bazley 0de91bb28f Can't inheritDoc unless implementing or overriding something ...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@768447 13f79535-47bb-0310-9956-ffa450edef68
2009-04-25 01:58:46 +00:00
Sebastian Bazley 2dac0fc426 MATH-261 - start adding some generics to Frequency
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@768084 13f79535-47bb-0310-9956-ffa450edef68
2009-04-23 22:52:10 +00:00
William Barker e1452ca6ea Fix equals and hashcode to do exact comparisons
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@767782 13f79535-47bb-0310-9956-ffa450edef68
2009-04-23 04:09:27 +00:00
Luc Maisonobe 7d6a1cec1a replaced a Java6 specific signature with its Java5 counterpart
(Array.newInstance(Class<T>, int ...)  --> (Array.newInstance(Class<T>, int[])

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@767435 13f79535-47bb-0310-9956-ffa450edef68
2009-04-22 09:39:57 +00:00
Luc Maisonobe 60d921afe9 fixed warnings about serial version ID
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@766874 13f79535-47bb-0310-9956-ffa450edef68
2009-04-20 20:58:33 +00:00
Luc Maisonobe 514f67b19b fixed missing dimension checks
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@766873 13f79535-47bb-0310-9956-ffa450edef68
2009-04-20 20:57:33 +00:00
Luc Maisonobe 7bbe75bdbd deprecated tests for deprecated methods
added new tests

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@766867 13f79535-47bb-0310-9956-ffa450edef68
2009-04-20 20:53:46 +00:00
Luc Maisonobe b70bdcde87 added DenseFieldMatrix
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@766852 13f79535-47bb-0310-9956-ffa450edef68
2009-04-20 20:19:49 +00:00
Luc Maisonobe f2f376229c use the buildArray method from base class
it has better generic parameter specification
and does initialize array elements

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@766849 13f79535-47bb-0310-9956-ffa450edef68
2009-04-20 20:18:52 +00:00
Luc Maisonobe d9b9f81e79 use a simpler syntax for a generic static test function
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@766847 13f79535-47bb-0310-9956-ffa450edef68
2009-04-20 20:16:48 +00:00
Luc Maisonobe 813e96bf8b converted buildArray to static, so it can be used from other static methods
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@766846 13f79535-47bb-0310-9956-ffa450edef68
2009-04-20 20:15:39 +00:00
Luc Maisonobe e2c16f0c5c optimized isInfinite for NaN vectors
reverted hashcode back to its previous behavior to avoid breaking consistency with equals

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@766793 13f79535-47bb-0310-9956-ffa450edef68
2009-04-20 18:42:11 +00:00
Phil Steitz e2b8720d5d Removed tabs.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@766494 13f79535-47bb-0310-9956-ffa450edef68
2009-04-19 18:05:48 +00:00
Luc Maisonobe 4853917da1 fixed checkstyle errors
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@766487 13f79535-47bb-0310-9956-ffa450edef68
2009-04-19 16:49:56 +00:00
Luc Maisonobe 169271dd31 removed TAB characters that crept in as of r762194 two weeks ago
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@766486 13f79535-47bb-0310-9956-ffa450edef68
2009-04-19 16:43:00 +00:00
Luc Maisonobe 2d343b1a30 added support for any kind of field in linear algebra
we can now use FieldMatrix<Fraction> and use exact LU-decomposition
on such matrices to solve linear systems

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@766485 13f79535-47bb-0310-9956-ffa450edef68
2009-04-19 16:39:40 +00:00
Luc Maisonobe d60149c7f8 Added the generic Field/FieldElement interfaces on top
of existing Complex, Fraction and BigFraction
Added a new BigReal class wrapping a BidDecimal and implementing FieldElement

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@766483 13f79535-47bb-0310-9956-ffa450edef68
2009-04-19 16:34:37 +00:00
Luc Maisonobe f802e004ae added Field and FieldElement interfaces to allow algorithms
operate on any type of field.
This change is related to the discussion on dev list
http://markmail.org/message/h2rmq6wo7nwqzx4w

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@766482 13f79535-47bb-0310-9956-ffa450edef68
2009-04-19 16:31:59 +00:00
Luc Maisonobe 9b4adf4df9 fixed an error in SparseRealVector.isInfinite, NaN was not checked beforehand
fixed an error in SparseRealVector.hashcode, code did not depend on vector entries
fixed tests accordingly

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@766337 13f79535-47bb-0310-9956-ffa450edef68
2009-04-18 15:17:12 +00:00
Sebastian Bazley 11e18f48ff Remove obsolete Maven1 files
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@766304 13f79535-47bb-0310-9956-ffa450edef68
2009-04-18 11:37:56 +00:00
Luc Maisonobe ced5fe0a22 removed tests not meaningful for sparse vectors
reactivated some commented-out tests

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@766144 13f79535-47bb-0310-9956-ffa450edef68
2009-04-17 20:31:52 +00:00
Sebastian Bazley 9f00f6a002 Use UTF-8 encoding for copying resources to avoid platform dependency
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@766092 13f79535-47bb-0310-9956-ffa450edef68
2009-04-17 17:29:21 +00:00
Sebastian Bazley 392e2c455c MATH-259 - throw IllegalArgument rather than ClassCast to better retain original behaviour
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@766003 13f79535-47bb-0310-9956-ffa450edef68
2009-04-17 13:44:46 +00:00