70 Commits

Author SHA1 Message Date
jos
e10dd5bce5 Refactored x && x.isBigNumber === true into type.isBigNumber(x) 2017-08-12 11:54:53 +02:00
Gulfaraz Yasin
275b09dce8 support to compare complex numbers #837 2017-05-10 19:05:49 +05:30
jos
b283accfa5 Refer to quantileSeq in docs of median 2017-02-20 20:50:37 +01:00
jos
29da2b0418 Released v3.8.1 2016-12-15 21:07:26 +01:00
Sebastian Ruhleder
fe52d51c0a Add median absolute deviation 2016-12-08 18:29:11 +01:00
jos
b2066e53f6 Replaced toTex definitions using the default toTex template with "undefined" and a comment (see #636) 2016-04-15 11:00:03 +02:00
jos
b3c1d63133 Throw an error when functions min, max, mean, or median are invoked with multiple matrices as arguments (see #598) 2016-03-24 21:22:33 +01:00
jos
15aca5e4d0 Changed casing of the values of config options number and matrix to match the actual name of the classes. 2016-03-04 19:41:54 +01:00
jos
f4b794100e Replaced tabs with spaces 2016-03-03 20:29:08 +01:00
jos
12eee9e856 Moved filter, forEach, map, partitionSelect, sort from utils to matrix section 2016-02-27 20:00:42 +01:00
jos
c558cf496e Fixed all broken unit tests 2016-02-14 21:51:37 +01:00
Kunal Vyas
ea2f1343c7 Added Mode Function
- Added the function in mode.js
- wrote the test cases.
2015-08-04 02:32:21 -04:00
jos
3f77f7138a Upgraded to typed-function v0.10.0 2015-07-26 19:48:18 +02:00
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