Changelog

This changelog includes end-user changes only. For internal development notes, see the repository changelog.

[5.1.0]

Changed

  • Breaking change: OnlineLowess.addPoint returns AddPointResult with OnlinePointStatus (FILLING / READY / DROPPED) instead of a bare Optional<PointResult>.

  • Online fits sort the sliding window by x before each update so non-monotonic streams stay correct.

  • StreamingLowess.processChunk rejects chunks that are not non-decreasing in x when merged with the previous overlap; feed ascending chunks or pre-sort the series.

Fixed

  • Distinguishing Online addPoint filling vs missing="drop" via OnlinePointStatus / AddPointResult.

  • Streaming no longer panics when derivatives were requested but missing; it throws instead.

  • Extend/Zero boundary pads use unit spacing when leading/trailing x ties would otherwise stack pads.

  • Closing retained PredictModel handles through Result (AutoCloseable) with take-once ownership and a Cleaner safety net on native-owning types.

  • Validating equal x/y lengths and customWeights against y before JNI.

[5.0.0]

Added

  • Enabled the optional wgpu DirectX 12 backend for GPU-enabled Windows builds. DXC is loaded dynamically with an FXC fallback, avoiding eager imports of dxcompiler.dll and dxil.dll.

  • Added GLES for Android GPU builds with a target-scoped wgpu feature; Windows continues to omit the GLES-only loader imports.

  • Added grouped outputs(…​), cv(CVOptions…​), and prediction-output APIs while preserving native option mapping.

  • Added IntervalsOptions for grouped confidence/prediction levels and residual-bootstrap intervals in Lowess, StreamingLowess, full-update OnlineLowess, and PredictModel.predict.

  • Added an "Alternative Software" guide comparing fastlowess with Apache Commons Math’s LoessInterpolator.

Changed

  • Clarified that Batch residualSd() is 1.4826 * MAD, while Streaming reports the cumulative sample standard deviation of emitted residuals.

  • Breaking change: replaced individual return…​ output setters and prediction flags with outputs(…​) for Batch, Streaming, Online, and prediction options.

  • Breaking change: replaced flat interval setters and PredictOptions interval levels with intervals(IntervalsOptions), and replaced flat CV setters and CVOptions.seed with cv(CVOptions) plus one outer seed(long) shared by CV and bootstrap. PredictOptions has its own seed for prediction-time bootstrap.

Fixed

  • Fixed CPU Gaussian standard errors for fitted and queried values to use the full unbounded kernel support.

  • Made even-sample medians and mean-absolute residual scaling overflow-resistant for large finite values, and centered Batch/Streaming R-squared accumulation to preserve one-ULP response variation at large offsets.

  • Made Batch RMSE, MAE, and R-squared reductions scale-safe for large finite values, preserved bisquare downweighting when tuned scales exceed the numeric range, and normalized custom weights before summation in local and all-tied fits.

  • Kept AIC finite when raw residual-square sums overflow, and made local/all-tied WLS invariant to common scaling of large finite case weights.

  • Fixed global OLS fits treating predictor values with a large offset as degenerate; translated inputs now retain their fitted slope.

  • Fixed fraction-1 global fits ignoring custom weights, including when Batch sorts observations by x.

  • Fixed Batch missing = "drop" accepting custom weights with a length different from the original input; weights are validated before rows are dropped.

  • Fixed standard errors for global weighted fits to account for observation weights and weighted prediction leverage.

  • Fixed local Batch and retained-model prediction standard errors ignoring custom_weights; local SE moments now include the per-observation case weights.

  • Fixed global fits with all-zero custom weights to honor the configured zero-weight fallback policy.

  • Fixed fraction-1 global fits ignoring configured robustness iterations; they now reweight observations and report iterations used.

  • Fixed Batch cross-validation candidate fits ignoring custom_weights; K-fold CV now rejects more folds than observations instead of returning zero scores.

  • Fixed Streaming and Online accepting invalid auto_converge tolerances; Online also rejects invalid explicit delta values while retaining NaN as its default sentinel.

  • Fixed GPU Batch fits misaligning fitted values with unsorted inputs; results now preserve input and requested sorted order.

  • Fixed GPU Batch silently ignoring custom_weights; GPU fit and CV candidate kernels now apply them directly.

  • Reduced GPU adapter buffer requirements from 30 storage/32 total buffer bindings to 7 storage/8 total per shader stage by using per-compute-pipeline resource layouts.

  • Fixed Online incremental mode accepting positive delta and auto_converge settings it cannot use; unsupported combinations now error.

  • Fixed grouped intervals discarding distinct confidence and prediction levels; each requested coverage is now applied independently.

  • Fixed retained-model handles leaking when JNI result conversion fails and array-read failures being hidden as empty inputs.

  • Fixed invalid k-fold counts and negative Streaming/Online iterations being silently coerced; CV grids and explicit custom-weight arrays must now be non-empty/valid.

  • Fixed GPU installation selecting unsupported libc/architecture targets or accepting incompatible local libraries; supported targets and a matching GPU ABI marker are now required.

  • Serialized operations on each Java model instance to protect mutable native state during concurrent calls.

  • Fixed the default boundaryPolicy ("extend") letting synthetic boundary points bias the shared robustness scale estimate used to reweight every point, compounding across robustness iterations.

  • Improved agreement with R/Cleveland on sparse, asymmetric, and high-iteration fits by aligning robustness stopping, local-linear degeneracy handling, neighborhood traversal, delta interpolation, and weighted accumulation.

  • Fixed zero-radius neighborhoods dropping tied observations or accumulating normalized weights in a different order under robust fits.

  • Fixed Gaussian fits clipping the unbounded kernel to the neighbor window and flooring far-tail weights; all observations now contribute under the standard Gaussian formula.

4.1.0

Added

  • Added bundled native libraries for the Java binding across 8 platforms, with runtime musl detection and auto-extraction.

  • Added retainModel and Result.predictModel() for prediction.

  • Added returnDerivative(boolean) to Options and OnlineOptions.

  • Added standard errors and confidence/prediction intervals to StreamingOptions and OnlineOptions; online intervals require updateMode("full").

Fixed

  • Changed the OnlineLowess default iterations from 3 to 0, matching non-robust incremental updates; robustness iterations require updateMode("full").

  • Fixed Lowess() accepting negative cv_seed values by rejecting negative seeds before casting.

4.0.0

Added

  • Added returnSorted to Options.

  • Added a missing option to Options.Builder, shared by Options, StreamingOptions, and OnlineOptions, to control non-finite input handling.

  • Added FastLowess.installGpu() to download a prebuilt GPU library; the Java runtime can load it from a directory set with -Dfastlowess.native.dir.

  • GPU installers now accept a path to a local GPU artifact, and prebuilt GPU artifacts are available for Linux and Windows ARM64.

Changed

  • Breaking change: removed returnDiagnostics, returnResiduals, and parallel from OnlineOptions.Builder; these options were accepted but had no effect in online mode.

  • Breaking change: removed confidenceIntervals and predictionIntervals from OnlineOptions.Builder and StreamingOptions.Builder.

  • Breaking change: StreamingOptions.Builder.overlap() now defaults dynamically to chunk_size / 10, clamped to [1, chunk_size - 10], instead of a fixed 500.

  • Improved the Java API documentation, including the overlap default.

3.2.1

Changed

  • Clarified that results are returned in input order, even though the algorithm sorts internally.

  • Updated the documentation site’s MathJax version for improved mathematical rendering.

Fixed

  • Fixed OnlineOptions.Builder defaulting to parallel execution; it now defaults to serial execution like the other bindings.

3.2.0

  • Initial release of the Java binding.