Commit Graph

86 Commits (9f0a1ed73033cb86dcad805efed0ec0b49142f15)

Author SHA1 Message Date
Doug Coleman 28dcd0667a factor: rename set to unordered-set. 2015-08-12 10:54:19 -05:00
John Benediktsson a718127fd1 random: some cleanup. 2014-02-06 18:17:03 -08:00
John Benediktsson c02fc27afc random: faster random-bits, make some things private. 2014-02-06 17:54:33 -08:00
John Benediktsson 986714489d random: 40% faster random-bytes*. 2014-02-06 11:05:16 -08:00
John Benediktsson 4af98fa568 random: use nths-unsafe in sample. 2013-04-06 14:29:47 -07:00
John Benediktsson 04af5f2ffb hash-sets: faster implementation based on hashtables. 2013-03-07 21:43:17 -08:00
John Benediktsson be7c981462 random: format delete-random better. 2013-03-03 17:32:53 -08:00
John Benediktsson c2f09e9533 random: speed up some random floats using (random-unit). 2013-03-01 09:33:20 -08:00
John Benediktsson 5094a7f460 random: adding (random-unit) for convenience. 2013-03-01 09:27:20 -08:00
John Benediktsson 2af325dc83 random: speedup random-integer some more.
Better code generation by specializing on fixnum/bignum.
2013-02-28 19:47:55 -08:00
John Benediktsson 927414c6c5 random: minor speedup (random-bits). 2013-02-27 15:26:56 -08:00
John Benediktsson 29b8c4b993 random: speedup randomize. 2013-02-27 14:51:29 -08:00
John Benediktsson b47a737321 random: speed up uniform-random-float. 2013-02-27 14:40:56 -08:00
John Benediktsson 8a5411cfc1 random: performance improvements to random-integer and random-bits. 2013-02-27 14:05:46 -08:00
Doug Coleman ae276ec225 random: Add poisson-random-float. 2012-12-31 11:02:56 -08:00
John Benediktsson e8d50a2d08 random: support random on sets. 2012-10-05 15:35:22 -07:00
John Benediktsson 9dafa325a5 random: support "random" on floats (uses uniform-random-float). 2012-10-05 14:47:40 -07:00
John Benediktsson fc5f9451e8 random: implement random for assocs. 2012-10-03 10:08:08 -07:00
John Benediktsson 4f418b14af random: faster random-units and random-integers. 2012-07-31 20:24:56 -07:00
Doug Coleman 46c5d64251 random: Add random-integers and random-units words. 2012-06-20 21:42:15 -07:00
Doug Coleman f6398365bd 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 9e9d830ec0 random: adding rayleigh, gumbel, logistic, and power random floats. 2012-04-18 14:37:27 -07:00
John Benediktsson ee499cd63d random: adding laplace, cauchy, chi-square, student's t, and inverse gamma distributions. 2012-04-14 21:00:19 -07:00
Doug Coleman 8af39377d1 random: Add a k parameter for pareto. Add some unit tests. 2012-04-03 16:27:04 -07:00
John Benediktsson 71dfe9bb14 random: adding triangular distribution. 2012-03-30 19:53:30 -07:00
John Benediktsson 1b4d9ba83e random: adding von-mises distribution. 2012-03-30 19:43:51 -07:00
John Benediktsson 2682e7ec7f random: implement gamma distribution, fix beta to use it. 2012-03-30 19:30:29 -07:00
Doug Coleman 8e3f0cdeac random: Change weibull-random-float to use alpha/beta parameters. 2012-03-30 18:38:18 -07:00
Doug Coleman 6686cae347 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 b23f3f8d56 random: 1 swap - was redundant. 2012-03-30 17:57:40 -07:00
John Benediktsson 1e7382b893 random: gauss-random-float is just normal-random-float. 2012-03-30 17:55:18 -07:00
John Benediktsson 1a8e52379a random: adding lognormal, exponential, weibull, pareto, gauss, and beta distributions. 2012-03-30 17:33:13 -07:00
Joe Groff 02df268261 random: don't assume random-bytes is a byte-vector
It's not anymore.
2011-11-16 10:03:42 -08:00
Joe Groff 1d4660c7ec 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 94db86a6db 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 37deaec528 random: random integers is 90% faster. 2011-10-14 18:52:41 -07:00
John Benediktsson 950f1e1c04 random: be> is faster (and they are random anyway)... 2011-10-11 22:31:21 -07:00
John Benediktsson afc07c0e05 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 8f6c6e5691 random: rewrite normal-random-float to be more readable 2011-09-09 18:13:17 -07:00
Slava Pestov 75560699ea 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 1f57dc326e Remove many uses of <int> and *int etc 2010-10-25 12:49:12 -05:00
Slava Pestov 220dd88a2c Update documentation for new help lint check 2010-02-19 12:31:52 +13:00
Doug Coleman 28adde8542 Fix using 2010-01-31 14:48:01 -06:00
Doug Coleman f15ec31559 Better implementation of sample, fix docs formatting 2010-01-31 14:48:01 -06:00
Doug Coleman 4c71d71907 random is generic now -- iota random -> random 2010-01-14 12:48:57 -06:00
Doug Coleman 52f4a05fad Make random a generic so it can still be called on integers 2010-01-15 07:15:35 +13:00
Slava Pestov 0612bc6177 Factor source files should not be executable 2009-11-21 17:50:43 -06:00
Doug Coleman 93de179c2f over push -> suffix!, over push-all -> append! 2009-10-28 15:29:01 -05:00
Slava Pestov 951e3e9c83 delete-nth -> remove-nth! 2009-10-27 23:41:57 -05:00
Doug Coleman ccc69a5ef4 fix bug in random-bytes* when no random-32* exists 2009-10-01 11:58:52 -05:00