jos
ab1b83a2f6
Remove generated files from repo, make tests independent from generated files
2019-05-12 15:14:13 +02:00
jos
427c39c33b
Created ES5 and ES6 entry points
2019-04-28 20:56:08 +02:00
jos
f4d4180cea
Move all entry files under ./src/entry
2019-04-24 10:48:01 +02:00
jos
99da53da0e
Flatten everything in a mathjs instance to make it consistent with the ES6 exports. Create deprecation warnings for the old classes and functions
2019-02-07 21:24:51 +01:00
jos
4d037c103c
Refactored random, randomInt, and pickRandom in more compact typed functions
2019-01-05 18:15:46 +01:00
jos
1eee1f30dc
Move the contents of distribution.js into random, randomInt, and pickRandom
2019-01-05 16:49:07 +01:00
jos
5dd0a9ba9c
Get bundle working (with lazy loading)
2019-01-02 10:03:05 +01:00
jos
c32d410565
Refactor functions create and core. Use the new index files from all unit tests
2018-12-19 18:08:01 +01:00
jos
8c7c0117bb
Remove some redundant unit tests
2018-11-24 22:15:02 +01:00
jos
d86710e065
Fix lint issue
2018-11-24 21:41:03 +01:00
jos
313f0bca5c
Fix broken unit tests
2018-11-24 21:08:48 +01:00
jos
c136e9564f
Fix broken unit test
2018-11-24 18:34:30 +01:00
jos
942218f0e1
Refactory typed into a regular factory function without special registrations. Remove most listeners.
2018-11-24 18:19:18 +01:00
jos
c7e0d211b7
All functions use plain object config properties, and use a copy of the config (finalize them)
2018-11-21 21:09:20 +01:00
jos
4c35d62158
Refactor the last files with commonjs
2018-11-09 14:07:14 +01:00
jos
a2ae756fd1
Remove semicolons
2018-10-31 21:18:51 +01:00
jos
247aeabffa
Refactor all unit tests to ES6 import/export
2018-10-31 21:17:23 +01:00
greenkeeper[bot]
c5971b371a
Update standard to the latest version 🚀 ( #1226 )
...
* chore(package): update standard to version 12.0.0
* update to new lint version with --fix
I believe this mainly adds whitespace to `{}`'s.
* Replace assert.equal with assert.strictEqual
This breaks a lot of tests which I will endevour to fix in the next
commits.
* Fix most errors due to assert.strictEquals
Some instances of `strictEquals` are replaced by `deepEquals`.
`toString` has been used to make some string comparisions explicit.
Tests will still fail untill #1236 and #1237 are fixed.
* Fix assertion erros due to -0
With node 10, assert.strictEqual no longer considers `0 === -0`.
I missed these first time round as I was using node 8.
* Put toString correct side of bracket
I was converting the constructor to a string rather
than the result of the computation. Oops.
* Fixed #1236 : quantileSeq has inconsistant return
* Update package-lock
* Fixed #1237 : norm sometimes returning a complex number instead of number
* Fix cli tests
* More changes for standardjs, and fixes in unit tests
2018-09-08 16:33:58 +02:00
jos
e844004cbf
Removed redundant escape characters
2018-06-13 21:15:10 +02:00
jos
600cfb403a
Fix return statement should not contain assignment
2018-06-13 17:37:27 +02:00
jos
0583771e4e
Cleanup unused variables and imports
2018-06-13 17:25:51 +02:00
jos
1f0a37a0cb
Split initialized 'const' declarations into multiple statements
2018-06-13 15:31:37 +02:00
jos
17f07ec098
Fixed incompatibility with v4 (index.js file)
2018-06-13 14:02:50 +02:00
jos
b3b96749bf
Refactored var into const/let, and removed a lot of semicolons
2018-06-13 12:21:14 +02:00
jos
024b2a9e26
Fix most lint errors using npx standard --fix
2018-06-10 20:28:27 +02:00
jos
635cd0b574
Revert using /lib/ in tests, use /src/ again. Fixed coverage testing. WIP
2018-06-06 22:11:52 +02:00
jos
79071b5e4f
Fixed npm run test:browser not working (WIP)
2018-06-06 21:30:41 +02:00
jos
0c084b8e20
npm test working now
2018-06-06 15:36:36 +02:00
jos
4469f6bd0c
Remove support for implicit conversion of null to 0. See #830 .
2018-01-23 20:26:38 +01:00
jos
7df52c1d1a
Fixed #983 : pickRandom returning an array instead of single value when input was an array with just one value. Clarified docs.
2017-12-09 20:42:08 +01:00
morsecodist
9466b214aa
Supported seeds of any type
2017-02-26 22:54:01 -05:00
morsecodist
9bfedf2921
Added and updated unit tests to new config option seeded rng
2017-02-24 15:21:17 -05:00
morsecodist
3d46e21ee5
Removed old seeded random number generator
2017-02-24 15:18:16 -05:00
morsecodist
79010f381f
Updated to use new seedrandom scheme
2017-02-21 16:46:07 -05:00
morsecodist
3b5e6a44d7
Added seedrandom unit tests
2017-02-21 16:35:03 -05:00
jos
1ecfdf1a0e
Implemented BigNumber support in function arg()
2016-11-05 19:52:22 +01:00
Mathias Polligkeit
832f280196
rewrite pickRandom as typed function
2016-07-18 02:17:27 +02:00
Mathias Polligkeit
fe972bacf6
extend pickRandom function to allow multiple picks and weighted distribution, remove pickMultipleRandom
2016-07-16 17:55:38 +02:00
Mathias Polligkeit
f8cde43e0a
rewrite tests for extended pickRandom function
2016-07-16 15:07:49 +02:00
Mathias Polligkeit
1e50dcf523
new tests for pickRandom to cover multiple picks and weighted distributions
2016-07-06 23:19:27 +02:00
Mathias Polligkeit
bd7f6edc24
remove test file for pickMultipleRandom
2016-07-06 23:18:33 +02:00
Mathias Polligkeit
c5e40b40ef
add pickMultipleRandom function
2016-06-30 02:19:09 +02: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
c558cf496e
Fixed all broken unit tests
2016-02-14 21:51:37 +01:00
jos
f45564afcf
Fixed : #493 : function combinations did not throw an exception for non-integer values of k.
2015-10-28 10:11:27 +01:00
Favian Contreras
7bccecb2cf
This resolves #444 . Updated test cases as well.
2015-09-19 03:15:23 -07:00
Sergey Romanov
5360549b1f
Add additional test
2015-08-01 17:26:05 +05:00
Sergey Romanov
a05cb67f8f
check concrete results
2015-08-01 17:22:31 +05:00
Sergey Romanov
e99d7c1a7f
Add test for bignumber
2015-08-01 17:18:35 +05:00
Sergey Romanov
87afd45d7f
kldivergence.test.js instead entropy.js
2015-07-31 02:35:04 +05:00