Doug Coleman
e4cc936c55
random: Bump up the random unit tests from 50k to 500k. At 50k, pareto doesn't have enough samples to get the right std. At 500k, it should never fail again..
2012-08-16 14:14:08 -07:00
John Benediktsson
373f30d673
random.data: make constants available to random.data.
2012-08-04 19:17:56 -07:00
Jon Harper
195330601b
random-string: make letters and numbers equiprobable
2012-08-04 17:32:33 -07:00
John Benediktsson
8410500dce
random: faster random-units and random-integers.
2012-07-31 20:24:56 -07:00
Doug Coleman
f0b492d898
random: More leeway for pareto unit test. Python's pareto distribution behaves the same, with a wide variance. Maybe both are busted, or is that just expected from pareto? Fixes #564 .
2012-07-26 12:19:21 -07:00
Doug Coleman
e90c0b8c75
random: Add random-integers and random-units words.
2012-06-20 21:42:15 -07:00
Doug Coleman
9a125e82e9
math.functions: rename exp to e^ to be consistent with 2^ and 10^. update things.
2012-05-02 10:22:23 -07:00
John Benediktsson
608e929b45
random: adding rayleigh, gumbel, logistic, and power random floats.
2012-04-18 14:37:27 -07:00
John Benediktsson
5c92d51e28
random: adding some tests for the random distributions.
2012-04-15 10:16:06 -07:00
John Benediktsson
9b8a781d15
random: adding laplace, cauchy, chi-square, student's t, and inverse gamma distributions.
2012-04-14 21:00:19 -07:00
Doug Coleman
f430475dc7
random: Add a k parameter for pareto. Add some unit tests.
2012-04-03 16:27:04 -07:00
John Benediktsson
f874084682
random: adding triangular distribution.
2012-03-30 19:53:30 -07:00
John Benediktsson
f88fff235f
random: adding von-mises distribution.
2012-03-30 19:43:51 -07:00
John Benediktsson
da687be68e
random: implement gamma distribution, fix beta to use it.
2012-03-30 19:30:29 -07:00
Doug Coleman
d4e0d9fd1c
random: Change weibull-random-float to use alpha/beta parameters.
2012-03-30 18:38:18 -07:00
Doug Coleman
1942372eb5
random: Add random-unit word. 1 random-unit - is the same distribution, as Joe pointed out, so remove that. Use random-unit in librarie.
2012-03-30 18:04:45 -07:00
John Benediktsson
ac0002f0ae
random: 1 swap - was redundant.
2012-03-30 17:57:40 -07:00
John Benediktsson
273bc939c7
random: gauss-random-float is just normal-random-float.
2012-03-30 17:55:18 -07:00
John Benediktsson
1b2bf096f6
random: adding lognormal, exponential, weibull, pareto, gauss, and beta distributions.
2012-03-30 17:33:13 -07:00
Joe Groff
eee483654a
use radix literals
2011-11-23 19:03:40 -08:00
Joe Groff
a1563d074a
random.unix: roll back type assertions
...
Probably don't really make much difference and are invalid in apps that deploy with io level 2 or lower.
2011-11-16 17:29:46 -08:00
Joe Groff
027fc77c36
random: don't assume random-bytes is a byte-vector
...
It's not anymore.
2011-11-16 10:03:42 -08:00
Joe Groff
86d5e8529c
random: go faster
...
* Use int <ref> instead of 4 >le
* Inline sequences:push-all
* Types, hints, inlines
Re: #328
2011-11-15 20:45:16 -08:00
Joe Groff
75cba3106a
remove BSD,solaris,etc. misc platform support code
2011-11-02 17:13:51 -07:00
Doug Coleman
be12f2b27d
Make "foo.private" require load foo instead.
...
Move require from vocabs.loader to vocabs. Update everything.
Fixes #201 .
2011-11-02 11:50:03 -07:00
John Benediktsson
98d1519874
random: random integers is 90% faster.
2011-10-14 18:52:41 -07:00
John Benediktsson
58f7c5ea0c
random: be> is faster (and they are random anyway)...
2011-10-11 22:31:21 -07:00
John Benediktsson
da21f5ca61
io.binary: make le> and be> faster (20% and 75%, respectively).
...
Removed primitive byte-array>bignum and digit_stream_to_bignum from vm/.
2011-10-11 21:13:30 -07:00
John Benediktsson
0e3d598e69
specialized-arrays: performed some cleanup.
...
Specifically,
• Created >c-array to be replacement for >T-array.
• Created cast-array to be generic replacement for all T-array-cast words.
• Created c-array@ to be generic replacement for T-array@ words.
• Replaced usages of <T-array> with T <c-array>
• Replaced usages of <direct-T-array> with T <c-direct-array>
• Replaced usages of >T-array with T >c-array
• Replaced usages of T-array-cast with T cast-array
• Replaced usages of malloc-T-array with T malloc-array.
• Removed malloc-T-array.
• Removed T-array-cast.
• Removed T-array@.
• Removed >T-array.
I also added (but didn't change any code to use):
• T c-array-type, returns T-array
• T c-array?, returns T-array?
• c-array{ T ... }, returns T-array{ ... }
Bootstraps just find on Mac OS X. Also `load-all test-all` works for me.
2011-09-26 11:37:51 -07:00
Joe Groff
571ef865e6
slots: pre-create the "at", "nth", and "global" slots to make deterministic the currently nondeterministic ambiguity between accessors:change-* and assocs:change-at, sequences:change-nth, and namespaces:change-global
2011-09-19 10:03:43 -07:00
Joe Groff
351d97ff32
random: rewrite normal-random-float to be more readable
2011-09-09 18:13:17 -07:00
Slava Pestov
55fd15c45a
Move <ref>, deref and little-endian? from alien.c-types to alien.data, remove <c-object>
2010-12-25 16:55:36 -08:00
Doug Coleman
40bdadcac4
Remove many uses of <int> and *int etc
2010-10-25 12:49:12 -05:00
Doug Coleman
9fb5f82400
Squashed commit of the following:
...
commit fbec7374aa3f99d8f76499183920e537dc7f38b1
Author: Doug Coleman <doug.coleman@gmail.com>
Date: Sun Sep 19 13:28:47 2010 -0500
Remove random.combinators vocab
commit 74f91aca4a961879ec57ef56114eadd5e9f6dcee
Author: Doug Coleman <doug.coleman@gmail.com>
Date: Sun Sep 19 13:28:22 2010 -0500
Rename random.combinators to combinators.random. Add random.data vocabulary
commit f616c3f4ceac48ac6f48836040130ba4f090c47f
Author: Doug Coleman <doug.coleman@gmail.com>
Date: Sun Sep 19 13:14:01 2010 -0500
Add execute-random combinator, docs, and respace a few things..
commit 1ce17507e3767c78e14ecf5e27e542168a47b2a2
Merge: db359d6 b53fc83
Author: Doug Coleman <doug.coleman@gmail.com>
Date: Sun Sep 19 12:55:53 2010 -0500
Merge branch 'random-combinators' of git://github.com/jonenst/factor into random-combinators
commit b53fc830f3319e9bdfce02674ea480f69e1453db
Author: Jon Harper <jon.harper87@gmail.com>
Date: Mon Aug 23 17:16:21 2010 +0200
Random combinators vocabulary
2010-09-19 13:29:43 -05:00
Doug Coleman
92a70356de
Move win32-handle to windows.handles and update using lists to avoid pulling in the io backend where not necessary
2010-09-16 15:40:36 -05:00
Doug Coleman
8c981de760
Make windows random objects inherit from win32-handle, remove redundant error handling, use new-disposable instead of new
2010-09-15 19:10:21 -05:00
Doug Coleman
632c19520a
Don't use 2|| for control flow, use nested recover instead. Fix bug where creating a crypto context would dereference the handle, causing a type error.
2010-09-15 18:11:51 -05:00
Doug Coleman
1853f93b1f
Remove dead code
2010-09-15 17:39:46 -05:00
unknown
162b8d1200
random.windows logic was horribly messed up
2010-09-15 17:16:20 -05:00
Slava Pestov
cf6b910c9f
alien.data: remove second quotation parameter from with-out-parameters, now all values are copied properly and calling 'clone' on structs in this quotation is not necessary
2010-07-16 17:32:05 -04:00
Slava Pestov
f04ae609c8
Fixes for out parameter changes
2010-05-23 03:27:40 -05:00
Slava Pestov
5d9993d46f
Updating code to use with-out-parameters
2010-05-23 03:07:47 -04:00
Slava Pestov
40f58f27d6
specialized-arrays: rename byte-array>T-array to T-array-cast, and make it work with anything that responds to >c-ptr / byte-length
2010-05-18 23:09:34 -04:00
Slava Pestov
d2d466de29
Language change: tuple slot setter words with stack effect ( value object -- ) are now named FOO<< instead of (>>FOO)
2010-05-06 17:21:02 -04:00
Doug Coleman
636f2ed2e5
Use flags{ instead of flags all over the place
2010-04-01 14:44:03 -05:00
Daniel Ehrenberg
bf73129238
Changing some uses of prune to use members
2010-02-27 13:14:03 -05:00
Slava Pestov
0aad3e6e12
vocabs.metadata: replace unportable tag with a platforms.txt file for more fine-grained control. Rename unportable tag to untested for remaining cases
2010-02-20 13:30:49 +13:00
Slava Pestov
74891bc02a
Update documentation for new help lint check
2010-02-19 12:31:52 +13:00
Doug Coleman
0ec2bf80da
Add [1,b) to math.ranges. Use [1,b] in random.sfmt
2010-01-31 14:48:01 -06:00
Doug Coleman
88fdae24c0
Fix using
2010-01-31 14:48:01 -06:00