fastlowess-cpp
High-performance LOWESS smoothing
Loading...
Searching...
No Matches
fastlowess.hpp File Reference

C++ wrapper for fastLowess library. More...

#include <algorithm>
#include <atomic>
#include <cmath>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <filesystem>
#include <fstream>
#include <initializer_list>
#include <iostream>
#include <limits>
#include <optional>
#include <stdexcept>
#include <string>
#include <system_error>
#include <utility>
#include <vector>
#include <cerrno>
#include <dlfcn.h>
#include <spawn.h>
#include <sys/wait.h>
#include <unistd.h>
#include "fastlowess.h"
#include "fastlowess_version.h"

Go to the source code of this file.

Classes

struct  fastlowess::CVOptions
 
struct  fastlowess::IntervalsOptions
 
class  fastlowess::LowessError
 Exception thrown when LOWESS operation fails. More...
 
class  fastlowess::Expected< T >
 A result type that holds either a value or an error. More...
 
struct  fastlowess::Expected< T >::ErrorTag
 
struct  fastlowess::LowessOptions
 Options for configuring LOWESS smoothing. More...
 
struct  fastlowess::StreamingOptions
 Options for streaming LOWESS. More...
 
struct  fastlowess::OnlineOptions
 Options for online LOWESS. More...
 
class  fastlowess::OnlineOutput
 Result of a single online update step. More...
 
class  fastlowess::Diagnostics
 Diagnostics from LOWESS fitting. More...
 
struct  fastlowess::PredictOptions
 Options for PredictModel::predict(). More...
 
class  fastlowess::PredictResult
 Result of PredictModel::predict(). More...
 
class  fastlowess::PredictModel
 Retained fitted-model state enabling out-of-sample predict(). More...
 
class  fastlowess::LowessResult
 Result of LOWESS smoothing operation. More...
 
class  fastlowess::Lowess
 Batch LOWESS model. More...
 
class  fastlowess::StreamingLowess
 Streaming LOWESS model. More...
 
class  fastlowess::OnlineLowess
 Online LOWESS model. More...
 

Namespaces

namespace  fastlowess
 
namespace  fastlowess::detail
 
namespace  fastlowess::gpu
 
namespace  fastlowess::gpu::detail
 

Enumerations

enum class  fastlowess::OnlinePointStatus : std::int8_t { fastlowess::Filling = 0 , fastlowess::Ready = 1 , fastlowess::Dropped = -1 }
 Outcome of OnlineLowess::add_point. More...
 

Functions

bool fastlowess::hasOutput (const std::vector< std::string > &outputs, const char *name)
 
void fastlowess::validateOutputs (const std::vector< std::string > &outputs, std::initializer_list< const char * > supported, const char *adapter)
 
void fastlowess::throwInitializationError (const char *fallback)
 
OnlinePointStatus fastlowess::onlinePointStatusFromRaw (int has_value)
 

Variables

constexpr double fastlowess::detail::k_default_fraction = 0.67
 
constexpr int fastlowess::detail::k_default_cv_k = 5
 
constexpr int fastlowess::detail::k_default_chunk_size = 5000
 
constexpr int fastlowess::detail::k_default_overlap = -1
 Sentinel meaning "use the library default" (chunk_size / 10, clamped to [1, chunk_size - 10]); negative values are never sent to the FFI layer.
 
constexpr int fastlowess::detail::k_default_window_capacity = 1000
 
constexpr int fastlowess::detail::k_default_min_points = 2
 

Detailed Description

C++ wrapper for fastLowess library.

Provides idiomatic C++ access to LOWESS smoothing with RAII, exceptions, and STL container support.