Commit Graph

68 Commits (e4cc936c55d9946698abd266f673ba8c06b5e19e)

Author SHA1 Message Date
John Benediktsson 8410500dce random: faster random-units and random-integers. 2012-07-31 20:24:56 -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 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 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
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
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
Slava Pestov 74891bc02a Update documentation for new help lint check 2010-02-19 12:31:52 +13:00
Doug Coleman 88fdae24c0 Fix using 2010-01-31 14:48:01 -06:00
Doug Coleman 3307797563 Better implementation of sample, fix docs formatting 2010-01-31 14:48:01 -06:00
Doug Coleman 7521807b55 random is generic now -- iota random -> random 2010-01-14 12:48:57 -06:00
Doug Coleman 2f48f9317a Make random a generic so it can still be called on integers 2010-01-15 07:15:35 +13:00
Slava Pestov 08b6ebc7fa Factor source files should not be executable 2009-11-21 17:50:43 -06:00
Doug Coleman ae519868f7 over push -> suffix!, over push-all -> append! 2009-10-28 15:29:01 -05:00
Slava Pestov b8a51c7eb0 delete-nth -> remove-nth! 2009-10-27 23:41:57 -05:00
Doug Coleman bc8ed57749 fix bug in random-bytes* when no random-32* exists 2009-10-01 11:58:52 -05:00
Doug Coleman cd1020385e make random-32* the protocol again, add a random-32 word that doesn't scale the returned bits 2009-09-30 15:56:02 -05:00
Doug Coleman d19e602e53 fix seed-random, random-32* -> random-32 2009-09-30 03:22:11 -05:00
Doug Coleman d9ef62ed23 add sample word to random vocab 2009-09-23 12:04:06 -05:00
Doug Coleman d1ce837569 Delete empty unit tests files, remove 1- and 1+, reorder IN: lines in a lot of places, minor refactoring 2009-08-13 19:21:44 -05:00
Slava Pestov d7db5edadc Cleaning up USING: lists for new strict semantics 2009-05-14 16:54:16 -05:00
Doug Coleman 9ef65178c9 move random-bits* to random, work on docs 2009-05-10 13:39:08 -05:00
Joe Groff 150f85b85a uniform-random-float speed 2009-05-06 17:26:21 -05:00
Joe Groff 3e67e571cd uniform and normal distributed random floats. uniform is done the lame way for now 2009-05-06 13:22:53 -05:00
Doug Coleman 4057332535 add a few usages of iota, remove most 1+ and 1- from core 2009-05-01 19:58:24 -05:00
Slava Pestov 25a877e50b Merge OneEyed's patch 2009-02-28 17:06:55 -06:00
Samuel Tardieu 087d931c36 Remove the tail argument from do/until/while 2009-02-18 02:41:14 +01:00
Slava Pestov 634435d816 Merge branch 'master' into new_ui 2009-02-15 04:07:51 -06:00
Doug Coleman 99122a8fb1 use while to implement randomize (thanks joe!), document it 2009-02-14 14:25:48 -06:00
Doug Coleman a0491606bc fix { } randomize, more unit tests 2009-02-14 14:04:54 -06:00
Doug Coleman 1418a67cc6 unit test how many elements to swap with randomize, remove a usage of pick 2009-02-14 13:28:41 -06:00
Doug Coleman 0286c524e8 randomize was broken -- elements could not exchange with themselves 2009-02-14 13:14:00 -06:00
Slava Pestov 669548e62e Clean up some usages of tuck, and add Joe's curried cleave/spread/apply combinators to kernel vocabulary 2009-02-02 13:43:54 -06:00
Slava Pestov 7cee0cdc2a Load fix for random 2008-12-18 02:04:05 -06:00