Skip to content

Examples

Complete working examples demonstrating fastlowess capabilities across all supported languages.

Language-Specific Examples

  • R


    Native R package with formula interface, ggplot2 visualization, and comprehensive statistics.

  • Python


    PyO3-based bindings with NumPy integration, matplotlib visualization, and full API access.

  • Rust


    Native Rust with builder pattern, type safety, and zero-cost abstractions.

  • Julia


    Native Julia package with C FFI for high-performance scientific computing.

  • Node.js


    Native N-API bindings for server-side JavaScript with TypeScript support.

  • WebAssembly


    Browser-ready WASM package for client-side smoothing applications.

  • C++


    Modern C++ wrapper with RAII, STL containers, and exception-based error handling.

Example Categories

Each language includes three complete examples:

Example Description Key Features
Batch Smoothing Complete dataset processing All features
Streaming Smoothing Large dataset chunked processing Memory efficiency, chunk merging
Online Smoothing Real-time point-by-point updates Incremental updates

Running Examples

cd examples/python
pip install fastlowess matplotlib numpy
python batch_smoothing.py
Rscript examples/r/batch_smoothing.R
cargo run --example fast_batch_smoothing -p examples
julia --project=bindings/julia/julia examples/julia/batch_smoothing.jl
cd bindings/nodejs && npm install
node examples/nodejs/batch_smoothing.js
make cpp
./examples/cpp/batch_smoothing