summaryrefslogtreecommitdiffstats
path: root/stdlib
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-09-22 06:19:36 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-09-22 06:19:36 -0700
commitbbd2e86fa76d4afb0ca39a28682f5a0da62aa1a0 (patch)
tree6f81cef60ea2adc431af7458dd5b1548970e1ef0 /stdlib
parent2c977768ba68fa50f091dd7dbb3f335f06e835a1 (diff)
downloadtxr-bbd2e86fa76d4afb0ca39a28682f5a0da62aa1a0.tar.gz
txr-bbd2e86fa76d4afb0ca39a28682f5a0da62aa1a0.tar.bz2
txr-bbd2e86fa76d4afb0ca39a28682f5a0da62aa1a0.zip
math: quantile estimator using P-Squared algorithm.
* Makefile (psquare.o): New object file. * arith.c (psq_ops): New static structure. (quant_fun): New static function. (quantile): New function. (arith_init): Register quantile intrinsic. * arith.h (quantile): Declared. * psquare.c, psquare.h: New files. * tests/016/arith.tl: New tests. * txr.1: Documented. * stdlib/doc-syms.tl: Updated.
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/doc-syms.tl1
1 files changed, 1 insertions, 0 deletions
diff --git a/stdlib/doc-syms.tl b/stdlib/doc-syms.tl
index 94b2cf89..60a81501 100644
--- a/stdlib/doc-syms.tl
+++ b/stdlib/doc-syms.tl
@@ -1503,6 +1503,7 @@
("pwd" "N-0047F5F6")
("qquote" "N-01665185")
("qref" "D-006E")
+ ("quantile" "N-0318C018")
("quip" "N-03C6D422")
("quote" "N-0163F998")
("r$" "N-03BBB0C5")