gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/gdt-plot.lua
diff options
context:
space:
mode:
authorFrancesco Abbate <francesco.bbt@gmail.com>2012年12月31日 16:55:42 +0100
committerFrancesco Abbate <francesco.bbt@gmail.com>2013年01月05日 23:49:53 +0100
commita573b3d4c3fc1f1cb81b0aafdfc3f3cf58b794cc (patch)
tree0ea906159b7edcfe9ceb51fb2a8ad95d6da8365c /gdt-plot.lua
parent17b2cfc6223c61693ddfcce8880ff0e89616e432 (diff)
downloadgsl-shell-a573b3d4c3fc1f1cb81b0aafdfc3f3cf58b794cc.tar.gz
Implement general linear regressions using gdt tables
Diffstat (limited to 'gdt-plot.lua')
-rw-r--r--gdt-plot.lua 15
1 files changed, 0 insertions, 15 deletions
diff --git a/gdt-plot.lua b/gdt-plot.lua
index 55ad3f59..68aec567 100644
--- a/gdt-plot.lua
+++ b/gdt-plot.lua
@@ -388,22 +388,7 @@ local function set_elements(X, P, i, ...)
end
end
-local function gdt_table_linfit(t, f, jy)
- local N, M = t:dim()
- local row = t:cursor()
- local P = count_args(f(row))
-
- local X, Y = matrix.alloc(N, P), matrix.alloc(N, 1)
- for i, row in t:rows() do
- set_elements(X, P, i, f(row, i))
- Y:set(i, 1, t:get(i, jy))
- end
-
- return num.linfit(X, Y)
-end
-
gdt.barplot = gdt_table_barplot
gdt.plot = gdt_table_lineplot
gdt.xyplot = gdt_table_xyplot
gdt.reduce = gdt_table_reduce
-gdt.lm = gdt_table_linfit
generated by cgit v1.2.3 (git 2.25.1) at 2025年09月13日 15:48:05 +0000

AltStyle によって変換されたページ (->オリジナル) /