SciProgCentre / kmath

Kotlin mathematics extensions library
649 stars 55 forks source link

Add implement of `loess`, `glm` and `gam` smoothing algorithms #79

Open alshan opened 4 years ago

alshan commented 4 years ago

Would be great to see some smoothing algorithms implemented in common module and deployed as a multi-platform library.

We are working on a multi-platform plotting library and are very interested in the following smoothing algorithms: loess, glm and gam.

Our library: https://github.com/JetBrains/lets-plot What do we need these smoothing algorithms for: https://ggplot2.tidyverse.org/reference/geom_smooth.html

altavir commented 4 years ago

Thanks for the feature request. This relies on #40 for general API design. When I am done I intend to port https://commons.apache.org/proper/commons-math/javadocs/api-3.6.1/src-html/org/apache/commons/math3/analysis/interpolation/LoessInterpolator.html to multiplatform

altavir commented 4 years ago

Here is a link to implementation by lets-plot team. It seems that the API is different from the one used for interpolator because it provides bands as well.