jos
|
fa01e993af
|
Refactored x && x.isMatrix === true into type.isMatrix(x), same with isDenseMatrix and isSparseMatrix
|
2017-08-12 13:24:39 +02:00 |
|
morsecodist
|
0502921d7e
|
Implemented seeded random number generation as config option
|
2017-02-24 15:20:57 -05:00 |
|
morsecodist
|
a1d567ff84
|
Used rng in _pickRandom
|
2017-02-21 16:34:45 -05:00 |
|
morsecodist
|
71c9447871
|
Added seed random to index and use rng in distribution
|
2017-02-21 16:30:13 -05:00 |
|
Mathias Polligkeit
|
cf857a3a09
|
some more minor code format changes
|
2016-10-18 02:02:09 +02:00 |
|
Mathias Polligkeit
|
b5a9695746
|
code formatting
|
2016-10-18 01:45:06 +02:00 |
|
Mathias Polligkeit
|
78f0c942bd
|
clean up distribution.js
|
2016-10-18 01:43:49 +02:00 |
|
Mathias Polligkeit
|
f81abbab25
|
add type validation
|
2016-10-18 01:43:19 +02:00 |
|
Mathias Polligkeit
|
239cabec37
|
Revert "add an intermediary typed function that will fail a test"
This reverts commit fc2b730e044d3ec5a93c010d789eac47768fccc2.
|
2016-10-18 01:27:18 +02:00 |
|
Mathias Polligkeit
|
94d102e758
|
Revert "add randomHelper function for duplicate logic of random/randomInt; fails"
This reverts commit c464010234c73144df142cdb6fb7d32d0533bdf3.
|
2016-10-18 01:27:13 +02:00 |
|
Mathias Polligkeit
|
bfcfeafd2e
|
Revert "refactor distribution.js"
This reverts commit ed0df31293f92171c44d06d5bdc04d408b967402.
|
2016-10-18 01:25:08 +02:00 |
|
Mathias Polligkeit
|
ed0df31293
|
refactor distribution.js
|
2016-08-02 02:43:51 +02:00 |
|
Mathias Polligkeit
|
c464010234
|
add randomHelper function for duplicate logic of random/randomInt; fails
|
2016-08-02 01:16:04 +02:00 |
|
Mathias Polligkeit
|
fc2b730e04
|
add an intermediary typed function that will fail a test
|
2016-08-01 23:54:53 +02:00 |
|
Mathias Polligkeit
|
2a98231966
|
add default max value if undefined in randomInt
|
2016-07-30 20:13:06 +02:00 |
|
Mathias Polligkeit
|
21570cda0b
|
turn randomInt into a typed function
|
2016-07-30 18:53:06 +02: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
|
c5e40b40ef
|
add pickMultipleRandom function
|
2016-06-30 02:19:09 +02: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
|
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 |
|
Max Bruckner
|
21bd67980a
|
Remove LaTeX of probability functions from util/latex.js
|
2015-06-14 02:23: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 |
|
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
|
1d5a972a58
|
Refactored combinations, factorial, gamma, permutations, pickRandom, random, randomInt to typed-functions
|
2015-04-15 21:30:32 +02:00 |
|
Rogelio J. Baucells
|
2077c39885
|
Matrix inheritance implementation
|
2015-03-10 15:28:19 -04:00 |
|
Rogelio J. Baucells
|
b4463d9ef3
|
Initial require() changes
|
2015-03-04 13:53:32 -05:00 |
|
jos
|
29cc34f1a8
|
Removed math.distribution for now, needs some rethinking
|
2014-08-28 21:46:56 +02:00 |
|
jos
|
8c224d3e71
|
Moved transformation of error messages (zero-based to one-based) to the expression/transform section
|
2014-07-20 20:45:10 +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
|
ced18ecfca
|
Implemented functions dotEqual and dotUnequal, renamed functions smallereq to smallerEq and largereq to largerEq (all functions are now camelcase)
|
2014-06-09 14:07:21 +02:00 |
|
jos
|
1691c701dd
|
A few more unit tests added
|
2014-06-09 11:19:33 +02:00 |
|
jos
|
490494d8ef
|
Fixed #65: Fixed random functions not accepting Matrix as input, and always returning a Matrix as output
|
2014-06-08 23:05:38 +02:00 |
|
jos
|
fc6a1c52c3
|
Fixed random functions returning a Matrix on Array input
|
2014-06-08 22:55:40 +02:00 |
|
jos
|
64aa6375f5
|
Moved functions random, randomInt and pickRandom to a separate file
|
2014-06-08 22:36:23 +02:00 |
|