commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Brandt <>
Subject [math] A Java implementation of STL: A Seasonal-Trend Decomposition Procedure Based on Loess
Date Fri, 18 Mar 2016 03:31:14 GMT
Hey Commons Math,

As part of some work on anomaly detection in time series data, a couple
colleagues and I have put together a Java implementation of STL
<>, which we think might be generally

It is based on commons-math3 LoessInterpolator
so we thought it might be a natural contribution to the project.

The code currently lives here: From a
usability perspective, I think it needs some cleanup work, and it needs
more thorough testing.

However, an earlier variant of the code has run in production with decent
results on reasonably large time series, so it is not too far off.

Is this something that would be valuable to Commons Math? A cursory search
of JIRA and the mailing lists didn't turn up with anything, so my apologies
if this has been previously discussed.

If so, I can massage the code to be consistent with the Developers Guide,
simplify usage, and add more test coverage, then follow the recommendations
there to create a patch.

Please feel free to submit pull requests or issues on the Github repo in
addition to discussion on this thread.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message