Is it possible to translate local regression to lua?
https://en.m.wikipedia.org/wiki/Local_regression
Thanks
Moderator: admin
[using Loess
xs = 10 .* rand(100)
ys = sin.(xs) .+ 0.5 * rand(100)
model = loess(xs, ys)
us = range(extrema(xs)...; step = 0.1)
vs = predict(model, us)
using Gadfly
p = plot(x=xs, y=ys, Geom.point, Guide.xlabel("x"), Guide.ylabel("y"),
layer(Geom.line, x=us, y=vs))
draw(SVG("loess.svg", 6inch, 3inch), p]
Return to Indicator and Signal Requests
Users browsing this forum: No registered users and 17 guests