Doc for b-splines and linear fit plus modifications in the related modules. - gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/examples/bspline.lua
diff options
context:
space:
mode:
authorFrancesco Abbate <francesco.bbt@gmail.com>2010年05月14日 22:26:57 +0000
committerFrancesco Abbate <francesco.bbt@gmail.com>2010年05月14日 22:26:57 +0000
commite20787f5ca9d39051df69d93b052380169cc1519 (patch)
tree7106c4d006fe5231bdbe95701da38a9cab96e995 /examples/bspline.lua
parentc2f0d23fcb380c770e468e4cb9c7e442255c738c (diff)
downloadgsl-shell-e20787f5ca9d39051df69d93b052380169cc1519.tar.gz
Doc for b-splines and linear fit plus modifications in the related modules.
Diffstat (limited to 'examples/bspline.lua')
-rw-r--r--examples/bspline.lua 4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/bspline.lua b/examples/bspline.lua
index 451fa053..6c6bb64f 100644
--- a/examples/bspline.lua
+++ b/examples/bspline.lua
@@ -20,5 +20,7 @@ X = b:model(x)
c, cov = mlinear(X, y, w)
-p = fxplot(|x| prod(c, b:eval(x))[1], 0, 15)
+p = plot('B-splines curve approximation')
+p:addline(xyline(x, mul(X, c)))
p:addline(xyline(x, y), 'blue', {{'marker', size=5}})
+p:show()
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月23日 10:08:29 +0000

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