Commit Graph

797 Commits (2bc643cb84ac720042a6ee48414b4b4b64caac72)

Author SHA1 Message Date
John Benediktsson 2bc643cb84 math.statistics: simpler (faster) version of rescale. 2012-05-04 14:51:38 -07:00
John Benediktsson 35d4a2bb1c math.statistics: adding contraharmonic-mean. 2012-05-04 14:43:29 -07:00
John Benediktsson 44e3f768b8 math.statistics: adding mean-dev and median-dev. 2012-05-04 14:40:24 -07:00
John Benediktsson 7820f5c8a8 math.statistics: separate "sample-" and "full-" versions of var, std, ste, and corr. 2012-05-04 14:31:26 -07:00
John Benediktsson 62654a4271 math.statistics: adding standardize, differences, rescale. 2012-05-04 14:18:45 -07:00
Doug Coleman 9b6f58fc9e 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.
2012-05-04 11:31:05 -07:00
John Benediktsson fda12a9972 math.functions: adding generalized signum function. Fixes #509. 2012-05-03 14:44:10 -07:00
John Benediktsson d6a5cc3ee8 math.vectors: adding p-norm. 2012-05-03 13:27:00 -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
Doug Coleman 4338db58a4 math.functions: Add e^ and sigmoid functions. 2012-05-02 09:21:34 -07:00
John Benediktsson 3f15cd4e63 math.statistics: adding entropy function. 2012-04-26 18:40:59 -07:00
John Benediktsson 84d7136a12 change to in-place reverse. 2012-04-24 18:51:46 -07:00
John Benediktsson 6323018b8a math.combinatorics: minor performance improvements. 2012-04-24 18:42:34 -07:00
John Benediktsson 8fe84dc35d math.combinatorics: faster version of factorial. 2012-04-24 10:06:00 -07:00
Doug Coleman fdcb9b93d7 math.statistics: Add eight methods for calculating quantiles. Add quartile. Add kth-smallests et al, refactor medians. 2012-04-24 03:17:50 -07:00
Doug Coleman 222e76bed6 math.statistics: Make a safe version of kth-object. Bounds check k w/ regards to seq. 2012-04-23 13:55:25 -07:00
John Benediktsson b668db8df6 math.combinatorics: adding <combinations> and <permutations> sequences. 2012-04-23 08:30:22 -07:00
Doug Coleman 5f4d67dc77 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. 2012-04-22 23:41:13 -07:00
John Benediktsson aa0321ebd9 math.combinatorics: fix failed find combinations/permutations. 2012-04-21 20:11:47 -07:00
John Benediktsson fcc30ee39f math.combinatorics: adding find-combination and find-permutation. 2012-04-20 23:31:40 -07:00
John Benediktsson cf3e318f31 math.functions: adding another test for roots. 2012-04-19 13:34:42 -07:00
John Benediktsson 13a4e3f2a8 math.functions: adding "roots" word to get arbitrary roots from numbers. 2012-04-19 12:19:14 -07:00
John Benediktsson e05002f70a math.functions: adding docs and tests for ^mod. 2012-04-19 08:20:11 -07:00
Doug Coleman 51cad6ce67 math.combinators: Add filter-permutations/combinations. Minor cleanup. 2012-04-18 15:18:54 -07:00
Doug Coleman f55c723d61 math.combinators: Add map-permutation 2012-04-18 15:18:54 -07:00
John Benediktsson 62b39c8764 math.statistics: adding cumulative versions of sum, product, min, and max. 2012-04-12 10:30:16 -07:00
Doug Coleman e161c6635a math.statistics: Fix docs for help-lint. 2012-04-10 08:52:12 -07:00
John Benediktsson b96cf6e88a math.combinatorics: fix help-lint. 2012-04-09 11:43:22 -07:00
John Benediktsson c8e2bd63a4 Revert "math.functions: simpler without "simple-gcd"."
This reverts commit aa7f60ebbc.
2012-04-05 10:34:50 -07:00
John Benediktsson aa7f60ebbc math.functions: simpler without "simple-gcd". 2012-04-05 10:31:46 -07:00
John Benediktsson 1b8f1d9945 math: adding a fast-gcd that speeds up all ratio operations by up to 10 times for bignum ratios. 2012-04-05 09:17:52 -07:00
John Benediktsson c1e0daf656 math.statistics: change 'var' to 'sample-var' and implement variance, covariance, and correlation. 2012-04-02 17:12:32 -07:00
John Benediktsson ce0e9aab98 math.vectors: separate "dot product" from "Hermitian inner product". Fixes #484. 2012-03-29 10:56:39 -07:00
John Benediktsson d2fb34f7da math.combinatorics: fix tests for next-permutation. 2012-03-02 10:05:57 -08:00
John Benediktsson 6cae745060 math.combinatorics: fix docs for next-permutation. 2012-03-02 09:55:22 -08:00
John Benediktsson ed37418a47 math.combinatorics: implementing "next-permutation". 2012-03-02 09:54:35 -08:00
John Benediktsson 0b59d246da math.vectors: fix some $examples in docs. 2011-12-29 17:31:55 -08:00
Joe Groff fb7172fd28 fix help-lint failures 2011-12-14 11:33:17 -08:00
Joe Groff 3365e1adbb math.vectors: add higher-order stack effect to vif 2011-12-13 19:46:44 -08:00
Joe Groff 30dc7d45e7 math.vectors.simd.intrinsics: fix deploy bug
If not called with a known-at-compile-time SIMD type, the intrinsic definitions were leaving behind runtime quotations that referenced the c-array words after c-type information had been stripped, causing deployed applications that used SIMD to fail.
2011-12-07 12:47:38 -08:00
Doug Coleman 5fb4b86fbf help-lint fixes for recent changes 2011-12-07 12:26:35 -08:00
Joe Groff aee5815696 math.complex: pass tests even if number-base set 2011-11-26 17:46:38 -08:00
Joe Groff eee483654a use radix literals 2011-11-23 19:03:40 -08:00
Joe Groff a520e7e5ee math.vectors.simd: don't try distance on int types
"v- norm" doesn't work right for uint-4s because of underflow, but who's going to call "distance" on a uint vector?
2011-11-13 16:10:27 -08:00
Joe Groff 3888e0bf67 math.vectors.simd: unencrypt check-optimizer
And make it report real information about what values were tested and how they failed
2011-11-13 16:10:27 -08:00
Joe Groff ce205e1e3a code beautification 2011-11-13 16:10:26 -08:00
Joe Groff 602fbd01de math.vectors.simd: add vcount to the tests
Also add a base case to (approx=) for integer returns. vcount returns an integer even for float vector inputs, but the test machinery isn't smart enough to figure that out and uses (approx=) on the outputs anyway.
2011-11-13 16:10:26 -08:00
Joe Groff c74d92a12c math.vectors.simd.intrinsics: fix double-2 vcount
Turns out we use MOVMSKPS for double vectors too. Gotta save that extra instruction byte!
2011-11-13 16:10:25 -08:00
Joe Groff a50c0a6624 math.vectors.simd: make vcount work for all ints 2011-11-13 16:10:23 -08:00
Joe Groff 6685af8b41 math.vectors.simd.intrinsics: better fake vgetmask
More accurate simulacrum of PMOVMSKB/MOVMSKPS/MOVMSKPD for non-intrinsic definition
2011-11-13 16:10:22 -08:00