Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| license: gpl-3.0 |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| license: gpl-3.0 |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <style> | |
| body { | |
| font: 14px sans-serif; | |
| } | |
| .axis path, .axis line { | |
| fill: none; |
| license: gpl-3.0 |
| license: gpl-3.0 |
| //adapted from the LoessInterpolator in org.apache.commons.math | |
| function loess_pairs(pairs, bandwidth) | |
| { | |
| var xval = pairs.map(function(pair){return pair[0]}); | |
| var yval = pairs.map(function(pair){return pair[1]}); | |
| console.log(xval); | |
| console.log(yval); | |
| var res = loess(xval, yval, bandwidth); | |
| console.log(res); | |
| return xval.map(function(x,i){return [x, res[i]]}); |