]> gitweb.factorcode.org Git - factor.git/log
factor.git
11 years agoAdding a readme that github can understand.
John Benediktsson [Thu, 17 May 2012 18:50:12 +0000 (11:50 -0700)]
Adding a readme that github can understand.

11 years agoassocs.extras: more tests for deep-at.
John Benediktsson [Thu, 17 May 2012 16:40:43 +0000 (09:40 -0700)]
assocs.extras: more tests for deep-at.

11 years agoassocs.extras: adding deep-at.
John Benediktsson [Tue, 15 May 2012 00:04:52 +0000 (17:04 -0700)]
assocs.extras: adding deep-at.

11 years agosequences.extras: adding supremum-by and infimum-by that call the "map" quot once...
John Benediktsson [Mon, 14 May 2012 23:44:07 +0000 (16:44 -0700)]
sequences.extras: adding supremum-by and infimum-by that call the "map" quot once per element.

11 years agosequences.extras: adding each-from and reduce-from.
John Benediktsson [Mon, 14 May 2012 23:43:42 +0000 (16:43 -0700)]
sequences.extras: adding each-from and reduce-from.

11 years agosequences.extras: adding test for insert-sorted.
John Benediktsson [Mon, 14 May 2012 23:12:35 +0000 (16:12 -0700)]
sequences.extras: adding test for insert-sorted.

11 years agohash-sets: using ?adjoin to implement duplicates, some tests.
John Benediktsson [Mon, 14 May 2012 22:47:56 +0000 (15:47 -0700)]
hash-sets: using ?adjoin to implement duplicates, some tests.

11 years agosets: adding ?adjoin.
John Benediktsson [Mon, 14 May 2012 22:47:44 +0000 (15:47 -0700)]
sets: adding ?adjoin.

11 years agomodels: adding ?set-model.
John Benediktsson [Mon, 14 May 2012 22:40:55 +0000 (15:40 -0700)]
models: adding ?set-model.

11 years agomath.statistics: adding winsorized-mean.
John Benediktsson [Tue, 8 May 2012 15:48:15 +0000 (08:48 -0700)]
math.statistics: adding winsorized-mean.

11 years agomath.statistics: adding trim-mean and signal-to-noise.
John Benediktsson [Tue, 8 May 2012 15:24:57 +0000 (08:24 -0700)]
math.statistics: adding trim-mean and signal-to-noise.

11 years agomath.similarity: fix tests, not sure this is the correct definition.
John Benediktsson [Tue, 8 May 2012 15:05:31 +0000 (08:05 -0700)]
math.similarity: fix tests, not sure this is the correct definition.

11 years agointerval-sets: inline unicode constant.
John Benediktsson [Tue, 8 May 2012 00:30:54 +0000 (17:30 -0700)]
interval-sets: inline unicode constant.

11 years agomath.statistics: Add sum-of-squares word, add sum-of-squared-errors/sum-of-absolute...
Doug Coleman [Mon, 7 May 2012 22:03:45 +0000 (15:03 -0700)]
math.statistics: Add sum-of-squares word, add sum-of-squared-errors/sum-of-absolute-errors words.

11 years agosequences.extra: Fix min-by and max-by.
Doug Coleman [Mon, 7 May 2012 22:02:44 +0000 (15:02 -0700)]
sequences.extra: Fix min-by and max-by.
maximum and minimum run 2x as many calls to the quotation as are actually necessary; fix this eventually.

11 years agomemoize: moving MEMO[ to memoize.syntax to work around bootstrap issue.
John Benediktsson [Sat, 5 May 2012 05:24:21 +0000 (22:24 -0700)]
memoize: moving MEMO[ to memoize.syntax to work around bootstrap issue.

11 years agomemoize: change MEMO[ to push a quotation.
John Benediktsson [Sat, 5 May 2012 04:31:23 +0000 (21:31 -0700)]
memoize: change MEMO[ to push a quotation.

11 years agomemoize: cleaner test case.
John Benediktsson [Sat, 5 May 2012 03:43:23 +0000 (20:43 -0700)]
memoize: cleaner test case.

11 years agomemoize: adding a MEMO[ word which makes an inlined anonymous memoized quotation.
John Benediktsson [Sat, 5 May 2012 03:39:26 +0000 (20:39 -0700)]
memoize: adding a MEMO[ word which makes an inlined anonymous memoized quotation.

11 years agoui.gadgets.editors: adding delete-to-start-of-document and delete-to-end-of-document.
John Benediktsson [Sat, 5 May 2012 01:38:12 +0000 (18:38 -0700)]
ui.gadgets.editors: adding delete-to-start-of-document and delete-to-end-of-document.

11 years agoRevert "Clean up smalltalk grammar"
John Benediktsson [Sat, 5 May 2012 01:20:04 +0000 (18:20 -0700)]
Revert "Clean up smalltalk grammar"

This reverts commit 578bb98f2139fa1e82e99e9687932de59fb96ab6.

11 years agomath.matrices: adding hilbert-matrix, toeplitz-matrix, hankel-matrix, and box-matrix.
John Benediktsson [Sat, 5 May 2012 01:01:21 +0000 (18:01 -0700)]
math.matrices: adding hilbert-matrix, toeplitz-matrix, hankel-matrix, and box-matrix.

11 years agointerval-sets: change tests to use constant literals.
John Benediktsson [Sat, 5 May 2012 00:40:45 +0000 (17:40 -0700)]
interval-sets: change tests to use constant literals.

11 years agointerval-sets: some modernization.
John Benediktsson [Sat, 5 May 2012 00:33:10 +0000 (17:33 -0700)]
interval-sets: some modernization.

11 years agoInterval sets library
Daniel Ehrenberg [Thu, 26 Mar 2009 23:15:22 +0000 (18:15 -0500)]
Interval sets library

11 years agoClean up smalltalk grammar
Slava Pestov [Mon, 6 Apr 2009 04:53:35 +0000 (23:53 -0500)]
Clean up smalltalk grammar

11 years agomath.statistics: Add power-mean and quadratic-mean.
Doug Coleman [Fri, 4 May 2012 22:27:46 +0000 (15:27 -0700)]
math.statistics: Add power-mean and quadratic-mean.

11 years agomath.statistics: simpler (faster) version of rescale.
John Benediktsson [Fri, 4 May 2012 21:51:38 +0000 (14:51 -0700)]
math.statistics: simpler (faster) version of rescale.

11 years agomath.statistics: adding contraharmonic-mean.
John Benediktsson [Fri, 4 May 2012 21:43:29 +0000 (14:43 -0700)]
math.statistics: adding contraharmonic-mean.

11 years agomath.statistics: adding mean-dev and median-dev.
John Benediktsson [Fri, 4 May 2012 21:40:24 +0000 (14:40 -0700)]
math.statistics: adding mean-dev and median-dev.

11 years agomath.statistics: separate "sample-" and "full-" versions of var, std, ste, and corr.
John Benediktsson [Fri, 4 May 2012 21:31:26 +0000 (14:31 -0700)]
math.statistics: separate "sample-" and "full-" versions of var, std, ste, and corr.

11 years agomath.extras: adding moving-median.
John Benediktsson [Fri, 4 May 2012 21:23:15 +0000 (14:23 -0700)]
math.extras: adding moving-median.

11 years agomath.statistics: adding standardize, differences, rescale.
John Benediktsson [Fri, 4 May 2012 21:18:45 +0000 (14:18 -0700)]
math.statistics: adding standardize, differences, rescale.

11 years agomath.matrices: Add a diagonal-matrix word that makes an nxn matrix from a sequence.
Doug Coleman [Fri, 4 May 2012 18:23:38 +0000 (11:23 -0700)]
math.matrices: Add a diagonal-matrix word that makes an nxn matrix from a sequence.
Optimize identity-matrix word -- 2-3x faster using diagonal-matrix.
Add an eye word that makes an mxn diagonal matrix with a diagonal offset by k.

11 years agomath.finance: adding some tests.
John Benediktsson [Fri, 4 May 2012 17:06:24 +0000 (10:06 -0700)]
math.finance: adding some tests.

11 years agomath.finance: some fixes to dema, gdema, and tema.
John Benediktsson [Fri, 4 May 2012 16:40:04 +0000 (09:40 -0700)]
math.finance: some fixes to dema, gdema, and tema.

11 years agoprettyprint: Fix unit tests. Remove useless line.
Doug Coleman [Fri, 4 May 2012 16:09:14 +0000 (09:09 -0700)]
prettyprint: Fix unit tests. Remove useless line.

11 years agomath.extras: adding moving-average and exponential-moving-average words.
John Benediktsson [Fri, 4 May 2012 16:04:27 +0000 (09:04 -0700)]
math.extras: adding moving-average and exponential-moving-average words.

11 years agocompiler.units: Oops, meant not to commit this one.
Doug Coleman [Fri, 4 May 2012 16:05:15 +0000 (09:05 -0700)]
compiler.units: Oops, meant not to commit this one.

11 years agomath.blas, alien.fortran: Back from beyond the grave.
Doug Coleman [Fri, 4 May 2012 16:03:27 +0000 (09:03 -0700)]
math.blas, alien.fortran: Back from beyond the grave.

11 years agomath.extras: adding jacobi and legendere symbols.
John Benediktsson [Fri, 4 May 2012 15:57:09 +0000 (08:57 -0700)]
math.extras: adding jacobi and legendere symbols.

11 years agoclasses:
Doug Coleman [Fri, 4 May 2012 02:17:41 +0000 (19:17 -0700)]
classes:
- Allow methods to dispatch off union{ } and intersection{ } classes.
- Add not{ } anonymous-complement syntax.
- Define class-name for anonymous-union/intersection/complement and maybes, and clean up pprint.
- Change maybe: foo to maybe{ foo }
- Call sort-classes when making anonymous-union/anonymous-intersection classes so that they are canonicalized.

11 years agomath.finance: adding dema, gdema, and tema.
John Benediktsson [Thu, 3 May 2012 23:31:04 +0000 (16:31 -0700)]
math.finance: adding dema, gdema, and tema.

11 years agomath.distances: adding correlation-distance.
John Benediktsson [Thu, 3 May 2012 22:52:28 +0000 (15:52 -0700)]
math.distances: adding correlation-distance.

11 years agomath.distances: adding a couple more distance functions.
John Benediktsson [Thu, 3 May 2012 22:42:12 +0000 (15:42 -0700)]
math.distances: adding a couple more distance functions.

11 years agomath.functions: adding generalized signum function. Fixes #509.
John Benediktsson [Thu, 3 May 2012 21:44:10 +0000 (14:44 -0700)]
math.functions: adding generalized signum function.  Fixes #509.

11 years agomath.distances: adding some distance functions.
John Benediktsson [Thu, 3 May 2012 20:38:59 +0000 (13:38 -0700)]
math.distances: adding some distance functions.

11 years agomath.vectors: adding p-norm.
John Benediktsson [Thu, 3 May 2012 20:27:00 +0000 (13:27 -0700)]
math.vectors: adding p-norm.

11 years agosequences.extras: adding 2map-sum and 2count.
John Benediktsson [Thu, 3 May 2012 18:31:38 +0000 (11:31 -0700)]
sequences.extras: adding 2map-sum and 2count.

11 years agomath.similarity: adding a few similarity metrics.
John Benediktsson [Thu, 3 May 2012 17:57:30 +0000 (10:57 -0700)]
math.similarity: adding a few similarity metrics.

11 years agosequences.extras: adding "filter-map".
John Benediktsson [Wed, 2 May 2012 18:14:10 +0000 (11:14 -0700)]
sequences.extras: adding "filter-map".

11 years agomath.functions: rename exp to e^ to be consistent with 2^ and 10^. update things.
Doug Coleman [Wed, 2 May 2012 16:59:09 +0000 (09:59 -0700)]
math.functions: rename exp to e^ to be consistent with 2^ and 10^. update things.

12 years agomath.functions: Add e^ and sigmoid functions.
Doug Coleman [Wed, 2 May 2012 16:21:34 +0000 (09:21 -0700)]
math.functions: Add e^ and sigmoid functions.

12 years agosequences: adding find-index-from.
John Benediktsson [Fri, 27 Apr 2012 20:41:47 +0000 (13:41 -0700)]
sequences: adding find-index-from.

12 years agotools.deploy: fix location of port-number file.
John Benediktsson [Fri, 27 Apr 2012 20:17:03 +0000 (13:17 -0700)]
tools.deploy: fix location of port-number file.

12 years agoctags.etags: remove unnecessary test.
John Benediktsson [Fri, 27 Apr 2012 19:05:51 +0000 (12:05 -0700)]
ctags.etags: remove unnecessary test.

12 years agoassocs.extras: adding assoc-harvest and assoc-sift.
John Benediktsson [Fri, 27 Apr 2012 18:39:20 +0000 (11:39 -0700)]
assocs.extras: adding assoc-harvest and assoc-sift.

12 years agosplitting: fixing split1-last.
John Benediktsson [Fri, 27 Apr 2012 15:48:57 +0000 (08:48 -0700)]
splitting: fixing split1-last.

12 years agomath.statistics: adding entropy function.
John Benediktsson [Fri, 27 Apr 2012 01:40:59 +0000 (18:40 -0700)]
math.statistics: adding entropy function.

12 years agoproject-euler: fix shadowing of permutations?.
John Benediktsson [Thu, 26 Apr 2012 23:58:09 +0000 (16:58 -0700)]
project-euler: fix shadowing of permutations?.

12 years agosequences.extras: fixing map-concat to return type of first mapped value.
John Benediktsson [Thu, 26 Apr 2012 22:07:39 +0000 (15:07 -0700)]
sequences.extras: fixing map-concat to return type of first mapped value.

12 years agousing reverse! when possible.
John Benediktsson [Thu, 26 Apr 2012 03:09:36 +0000 (20:09 -0700)]
using reverse! when possible.

12 years agoassocs: 50% faster zip.
John Benediktsson [Thu, 26 Apr 2012 03:09:21 +0000 (20:09 -0700)]
assocs: 50% faster zip.

12 years agosequences.extras: faster longest-subseq, cleanup other words.
John Benediktsson [Wed, 25 Apr 2012 23:30:08 +0000 (16:30 -0700)]
sequences.extras: faster longest-subseq, cleanup other words.

12 years agosequences.extras: adding map-sift and map-harvest.
John Benediktsson [Wed, 25 Apr 2012 22:58:18 +0000 (15:58 -0700)]
sequences.extras: adding map-sift and map-harvest.

12 years agosequences.extras: adding map-filter.
John Benediktsson [Wed, 25 Apr 2012 22:50:35 +0000 (15:50 -0700)]
sequences.extras: adding map-filter.

12 years agosequences.extras: adding map-concat.
John Benediktsson [Wed, 25 Apr 2012 20:28:56 +0000 (13:28 -0700)]
sequences.extras: adding map-concat.

12 years agoUse "map-sum" instead of "map sum".
John Benediktsson [Wed, 25 Apr 2012 20:18:21 +0000 (13:18 -0700)]
Use "map-sum" instead of "map sum".

12 years agochange to in-place reverse.
John Benediktsson [Wed, 25 Apr 2012 01:51:46 +0000 (18:51 -0700)]
change to in-place reverse.

12 years agomath.combinatorics: minor performance improvements.
John Benediktsson [Wed, 25 Apr 2012 01:42:34 +0000 (18:42 -0700)]
math.combinatorics: minor performance improvements.

12 years agobenchmark.combinatorics: adding a combinatorics benchmark.
John Benediktsson [Wed, 25 Apr 2012 00:29:26 +0000 (17:29 -0700)]
benchmark.combinatorics: adding a combinatorics benchmark.

12 years agosequences.extras: adding rotate and rotate! words.
John Benediktsson [Tue, 24 Apr 2012 23:59:17 +0000 (16:59 -0700)]
sequences.extras: adding rotate and rotate! words.

12 years agomath.combinatorics: faster version of factorial.
John Benediktsson [Tue, 24 Apr 2012 17:03:45 +0000 (10:03 -0700)]
math.combinatorics: faster version of factorial.

12 years agomath.statistics: Add eight methods for calculating quantiles. Add quartile. Add kth...
Doug Coleman [Tue, 24 Apr 2012 10:17:50 +0000 (03:17 -0700)]
math.statistics: Add eight methods for calculating quantiles. Add quartile. Add kth-smallests et al, refactor medians.

12 years agomath.statistics: Make a safe version of kth-object. Bounds check k w/ regards to...
Doug Coleman [Mon, 23 Apr 2012 20:55:25 +0000 (13:55 -0700)]
math.statistics: Make a safe version of kth-object. Bounds check k w/ regards to seq.

12 years agomath.combinatorics: adding <combinations> and <permutations> sequences.
John Benediktsson [Mon, 23 Apr 2012 15:29:20 +0000 (08:29 -0700)]
math.combinatorics: adding <combinations> and <permutations> sequences.

12 years agomath.statistics: Generalize kth-smallest into kth-object, add kth-largest. Add count...
Doug Coleman [Mon, 23 Apr 2012 06:41:13 +0000 (23:41 -0700)]
math.statistics: Generalize kth-smallest into kth-object, add kth-largest. Add count-relative and minmax-relative for counting the number of lt, eq, gt elements, and getting the max lt and min gt in one pass.

12 years agomath.combinatorics: fix failed find combinations/permutations.
John Benediktsson [Sun, 22 Apr 2012 03:11:47 +0000 (20:11 -0700)]
math.combinatorics: fix failed find combinations/permutations.

12 years agomath.combinatorics: adding find-combination and find-permutation.
John Benediktsson [Sat, 21 Apr 2012 06:31:40 +0000 (23:31 -0700)]
math.combinatorics: adding find-combination and find-permutation.

12 years agomath.extras: adding sterling numbers, bernoulli numbers, chi-square and inverse-chi...
John Benediktsson [Sat, 21 Apr 2012 03:09:54 +0000 (20:09 -0700)]
math.extras: adding sterling numbers, bernoulli numbers, chi-square and inverse-chi-square words.

12 years agobenchmark.make: use % (push-all).
John Benediktsson [Fri, 20 Apr 2012 17:51:51 +0000 (10:51 -0700)]
benchmark.make: use % (push-all).

12 years agobenchmark.make: adding a simple make benchmark.
John Benediktsson [Fri, 20 Apr 2012 17:41:50 +0000 (10:41 -0700)]
benchmark.make: adding a simple make benchmark.

12 years agomake: most sequences are less than 32.
John Benediktsson [Fri, 20 Apr 2012 05:02:47 +0000 (22:02 -0700)]
make: most sequences are less than 32.

12 years agosequences.extras: adding slice-when (non-destructive split-when).
John Benediktsson [Thu, 19 Apr 2012 23:41:44 +0000 (16:41 -0700)]
sequences.extras: adding slice-when (non-destructive split-when).

12 years agomath.primes.twins: calculating twin primes.
John Benediktsson [Thu, 19 Apr 2012 22:14:31 +0000 (15:14 -0700)]
math.primes.twins: calculating twin primes.

12 years agomath.functions: adding another test for roots.
John Benediktsson [Thu, 19 Apr 2012 20:34:42 +0000 (13:34 -0700)]
math.functions: adding another test for roots.

12 years agomath.functions: adding "roots" word to get arbitrary roots from numbers.
John Benediktsson [Thu, 19 Apr 2012 19:19:14 +0000 (12:19 -0700)]
math.functions: adding "roots" word to get arbitrary roots from numbers.

12 years agomath.functions: adding docs and tests for ^mod.
John Benediktsson [Thu, 19 Apr 2012 15:20:11 +0000 (08:20 -0700)]
math.functions: adding docs and tests for ^mod.

12 years agocleanup some lint warnings.
John Benediktsson [Thu, 19 Apr 2012 00:46:01 +0000 (17:46 -0700)]
cleanup some lint warnings.

12 years agoclasses.struct: add some docs for read-struct.
John Benediktsson [Wed, 18 Apr 2012 23:02:00 +0000 (16:02 -0700)]
classes.struct: add some docs for read-struct.

12 years agoclasses.struct: adding a read-struct word.
John Benediktsson [Wed, 18 Apr 2012 23:00:29 +0000 (16:00 -0700)]
classes.struct: adding a read-struct word.

12 years agosplitting: fix docs for split1-when.
John Benediktsson [Wed, 18 Apr 2012 22:59:08 +0000 (15:59 -0700)]
splitting: fix docs for split1-when.

12 years agosplitting: adding split1-when.
John Benediktsson [Wed, 18 Apr 2012 22:55:15 +0000 (15:55 -0700)]
splitting: adding split1-when.

12 years agomath.combinators: Add filter-permutations/combinations. Minor cleanup.
Doug Coleman [Wed, 18 Apr 2012 22:17:48 +0000 (15:17 -0700)]
math.combinators: Add filter-permutations/combinations. Minor cleanup.

12 years agomath.combinators: Add map-permutation
Doug Coleman [Wed, 18 Apr 2012 21:43:08 +0000 (14:43 -0700)]
math.combinators: Add map-permutation

12 years agosequences.extras: Experimenting with collapse, compact words. Add even/odd-indices...
Doug Coleman [Wed, 18 Apr 2012 21:06:41 +0000 (14:06 -0700)]
sequences.extras: Experimenting with collapse, compact words. Add even/odd-indices words.

12 years agorandom: adding rayleigh, gumbel, logistic, and power random floats.
John Benediktsson [Wed, 18 Apr 2012 21:37:27 +0000 (14:37 -0700)]
random: adding rayleigh, gumbel, logistic, and power random floats.

12 years ago24-game: remove broken "spin" definition.
John Benediktsson [Wed, 18 Apr 2012 19:11:41 +0000 (12:11 -0700)]
24-game: remove broken "spin" definition.

12 years agoclasses.algebra: make class= and only-classoid? use short-circuit logic.
John Benediktsson [Wed, 18 Apr 2012 19:00:24 +0000 (12:00 -0700)]
classes.algebra: make class= and only-classoid? use short-circuit logic.

12 years agosequences.extras: adding a version of filter that uses an elements index.
John Benediktsson [Wed, 18 Apr 2012 17:47:25 +0000 (10:47 -0700)]
sequences.extras: adding a version of filter that uses an elements index.