fastlowess-cpp
High-performance LOWESS smoothing
Loading...
Searching...
No Matches
fastlowess::LowessOptions Struct Reference

Options for configuring LOWESS smoothing. More...

#include <fastlowess.hpp>

Inheritance diagram for fastlowess::LowessOptions:
fastlowess::StreamingOptions

Public Attributes

double fraction = detail::k_default_fraction
 Smoothing fraction (0, 1].
 
int iterations = 3
 Robustness iterations.
 
double delta = NAN
 Interpolation threshold (NaN = auto)
 
std::string weight_function = "tricube"
 
std::string robustness_method = "bisquare"
 
std::string scaling_method = "mad"
 
std::string boundary_policy = "extend"
 
std::string zero_weight_fallback = "use_local_mean"
 
IntervalsOptions intervals
 
std::optional< uint64_t > seed
 
double auto_converge = NAN
 Auto-convergence threshold.
 
std::vector< std::string > outputs
 Optional result components: diagnostics, residuals, weights, derivative, se, and sorted.
 
bool parallel = true
 
std::string backend = "cpu"
 Execution backend: "cpu" (default) or "gpu" (requires the library to be built with the gpu Cargo feature and a Vulkan/Metal/DX12-capable GPU).
 
std::string missing = "error"
 Policy for non-finite (NaN/Inf) values in input data: "error" (default) or "drop".
 
CVOptions cv
 Cross-validation configuration. Empty fractions disable CV.
 
std::vector< double > custom_weights
 Per-observation case weights.
 
bool retain_model = false
 Retain the fitted model's training data, enabling LowessResult::predict_model().
 

Detailed Description

Options for configuring LOWESS smoothing.

Member Data Documentation

◆ auto_converge

double fastlowess::LowessOptions::auto_converge = NAN

Auto-convergence threshold.

◆ backend

std::string fastlowess::LowessOptions::backend = "cpu"

Execution backend: "cpu" (default) or "gpu" (requires the library to be built with the gpu Cargo feature and a Vulkan/Metal/DX12-capable GPU).

◆ boundary_policy

std::string fastlowess::LowessOptions::boundary_policy = "extend"

◆ custom_weights

std::vector<double> fastlowess::LowessOptions::custom_weights

Per-observation case weights.

When non-empty, must have the same length as the data passed to fit(). All values must be finite and non-negative.

◆ cv

CVOptions fastlowess::LowessOptions::cv

Cross-validation configuration. Empty fractions disable CV.

◆ delta

double fastlowess::LowessOptions::delta = NAN

Interpolation threshold (NaN = auto)

◆ fraction

double fastlowess::LowessOptions::fraction = detail::k_default_fraction

Smoothing fraction (0, 1].

◆ intervals

IntervalsOptions fastlowess::LowessOptions::intervals

◆ iterations

int fastlowess::LowessOptions::iterations = 3

Robustness iterations.

◆ missing

std::string fastlowess::LowessOptions::missing = "error"

Policy for non-finite (NaN/Inf) values in input data: "error" (default) or "drop".

◆ outputs

std::vector<std::string> fastlowess::LowessOptions::outputs

Optional result components: diagnostics, residuals, weights, derivative, se, and sorted.

◆ parallel

bool fastlowess::LowessOptions::parallel = true

◆ retain_model

bool fastlowess::LowessOptions::retain_model = false

Retain the fitted model's training data, enabling LowessResult::predict_model().

◆ robustness_method

std::string fastlowess::LowessOptions::robustness_method = "bisquare"

◆ scaling_method

std::string fastlowess::LowessOptions::scaling_method = "mad"

◆ seed

std::optional<uint64_t> fastlowess::LowessOptions::seed

◆ weight_function

std::string fastlowess::LowessOptions::weight_function = "tricube"

◆ zero_weight_fallback

std::string fastlowess::LowessOptions::zero_weight_fallback = "use_local_mean"

The documentation for this struct was generated from the following file: