57 Commits

Author SHA1 Message Date
jos
2353c4a61e Renamed folders util to utils 2015-07-18 13:22:38 +02:00
jos
57a47b3b5a Moved pure collection functions to lib/util/collection 2015-07-18 12:53:07 +02:00
jos
493f34ec7b Split collection.js into separate (pure) functions 2015-07-18 11:47:38 +02:00
jos
0475924551 Use addScalar instead of add where possible 2015-07-11 16:38:36 +02:00
Max Bruckner
71a9b14849 Remove LaTeX of statistics functions from util/latex.js 2015-06-14 02:23:41 +02:00
jos
b7b4669935 Conversions after merging develop into v2 2015-06-07 15:57:58 +02:00
jos
a92b978036 Merged develop into v2 2015-06-07 15:57:41 +02:00
jos
6c7bf4acf0 Removed boolean, string, and null from the list with argument types, only leaving the directly supported types (which types can be converted to supported types is determined externally). Consistently renamed primitive types lower case (boolean, string, number, null) and non-primitive types uppercase (Complex, BigNumber, Function, Array, ...). 2015-05-20 21:08:26 +02:00
Favian Contreras
1b9ace802e Cleaned up median by removing flat variable. Added test case with multiple empty lists (where simply taking the length of a non-flattened list would fail). 2015-05-18 13:20:51 -07:00
Max Bruckner
b50ed45c06 Use number configuration for return type of sum with empty array 2015-05-18 14:08:15 +02:00
Max Bruckner
1ef8f2986e sum: Fix #369 return 0 for empty array 2015-05-17 21:18:14 +02:00
Favian Contreras
7c68055c09 Replaced the sort in median and quantileSeq with a partition-based selection function. Also removed the flatted call in median for a sequence (still needed for an Array or Matrix input). 2015-05-16 01:09:12 -07:00
Favian Contreras
fbfbd030d1 Removed the ability to insert data as a series of scalar values. Consolidated sorted and normal cases into 1 file. Added ability to use a list of probabilities, or an integer as a number of would be evenly spaced probabilities. 2015-05-14 08:06:38 -07:00
Favian Contreras
ae3267d5b8 Basic quantile implementation and tests (see issues #305 and #354). There is also an implementation that assumes the input is sorted in ascending order, to maintain an O(1) runtime. 2015-05-12 03:04:51 -07:00
jos
8c032f2593 Replaced all instanceof checks with x && xisMyType === true checks 2015-05-05 15:09:21 +02:00
jos
758107428c Moved collection.js and Matrix.js under ./lib/type/matrix, moved construction functions matrix.js and sparse.js to ./lib/type/matrix/function, and created an index file. 2015-05-05 12:00:07 +02:00
jos
7a37c777e4 Created index.js files for most groups of functions so you can import a all functions with a single action 2015-04-26 20:28:47 +02:00
jos
8cfabebdfb Oops. committed missing files 2015-03-31 22:23:32 +02:00
jos
8a68bb56e4 Merged math.js v1.5 into v2. Format support of functions eye and diag still needs to be fixed 2015-03-31 22:07:47 +02:00
jos
5cab0641e9 Simplified the factory structure a little bit. Reworked reviver and BigNumber to factories 2015-03-26 21:03:55 +01:00
Rogelio J. Baucells
0d34992080 Merge pull request #23 from josdejong/develop
Sync
2015-03-19 00:06:26 -04:00
jos
de0f937950 Created a loader and reworked the functions to a new type of factory function 2015-03-18 22:42:54 +01:00
J. Harshbarger
6cdaa7dc4a Typo in docs for mean and median 2015-03-14 08:12:44 +09:00
Jos de Jong
98fd982068 Refactored max, mean, median, prod, std, var to typed functions 2015-03-09 21:47:23 +00:00
Rogelio J. Baucells
b4463d9ef3 Initial require() changes 2015-03-04 13:53:32 -05:00
jos
bfd2bc4102 Fixed typo 2015-02-26 21:57:35 +01:00
jos
8edf472478 Upgraded to typed-function v0.6.1, more functions refactored. 2015-02-07 20:29:32 +01:00
jos
19c2024524 Halfway reworking more functions (lot of stuff is broken at this point) 2015-01-17 21:09:39 +01:00
jos
6cefd52557 Refactored the first few functions into typed-functions 2015-01-11 15:29:40 +01:00
jos
7b08047061 Changed min, max, and mean to one-based dim 2014-07-24 21:35:11 +02:00
jos
40986a1325 Using strict mode now in all files (added 'use strict'; on top of every file) 2014-07-18 23:19:14 +02:00
jos
7d84e4daf0 Math.js now immediately returns a default instance of mathjs, no need to create an instance every time you want to use the library. 2014-06-20 23:11:14 +02:00
jos
830367a494 More docs added 2014-05-18 22:21:00 +02:00
josdejong
922ce679e6 Moved UnsupportedTypeError to the others, and made it independent of the math namespace 2014-04-11 17:44:55 +02:00
josdejong
ad554ef1f7 Updates and fixes to work with a different BigNumber instance per math.js instance 2014-04-05 22:42:03 +02:00
josdejong
d19e7ea570 Switched to module decimal.js for BigNumber support, instead of bignumber.js. 2014-04-04 21:08:33 +02:00
josdejong
b333ad073a Implemented function median 2014-03-29 22:26:12 +01:00
josdejong
a073a95859 Implemented functions sum, prod, var, std. Reducing a matrix over a specified dimension still missing 2014-03-29 14:45:09 +01:00
josdejong
f51f4454f5 More unit tests 2014-03-17 21:29:52 +01:00
josdejong
af286e482a Updated docs on min, max, mean 2013-10-24 15:18:21 +02:00
Jos de Jong
9f68a1292a Merge pull request #105 from guillermobox/develop
Fixed mean to use "size" instead of calculating it
2013-10-24 05:43:11 -07:00
Guillermo Indalecio Fernandez
cd03fa1e62 Fixed mean to use "size" instead of calculating it 2013-10-24 14:07:47 +02:00
Jos de Jong
13b7e6acee Merge pull request #103 from guillermobox/develop
Reduce functionality
2013-10-24 04:31:44 -07:00
Guillermo Indalecio Fernandez
a998e4bb86 Added more powerful tests and fixed code for mean 2013-10-24 13:22:41 +02:00
Guillermo Indalecio Fernandez
540bb7af9b Changed reduce calls from one-based to zero-based 2013-10-24 12:49:36 +02:00
Guillermo Indalecio Fernandez
da1d23bc0a Fixed tests and reduce function 2013-10-22 20:16:04 +02:00
Guillermo Indalecio
c72da9f8e2 Fixed small typo 2013-10-22 19:32:05 +02:00
Guillermo Indalecio
f43523b301 Added reduce calls from "mean" function 2013-10-22 19:27:05 +02:00
Guillermo Indalecio
d4f41af2c4 Added reduce call in function "min" 2013-10-22 19:15:16 +02:00
Guillermo Indalecio Fernandez
020dfa0e46 Added test for max, it seems to work in 2D 2013-10-22 11:06:00 +02:00