1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
//! Interpolation and delta optimization for LOWESS smoothing.
//!
//! This module provides utilities for optimized LOWESS performance through
//! delta-based point skipping and linear interpolation. When data points are
//! densely sampled, fitting every point is computationally expensive and
//! often unnecessary.
//!
//! ## srrstats Compliance
//!
//! @srrstats {G1.6} Delta-based interpolation reduces O(n²) to O(n×k) for dense data.
//! @srrstats {RE2.2} Linear interpolation between anchor points for non-fitted values.
// External dependencies
use Result;
use Float;
// Internal dependencies
use crateLowessError;
// Calculate delta parameter for interpolation optimization.
// Interpolate gap between two fitted anchor points.