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
// SPDX-License-Identifier: AGPL-3.0-or-later
//! Interpolation methods
//!
//! This module provides various interpolation methods for approximating
//! functions from discrete data points.
//!
//! # Available Methods
//!
//! - **Cubic Spline**: C² continuous piecewise cubic interpolation
//!
//! # Example
//!
//! ```
//! use barracuda::interpolate::CubicSpline;
//!
//! // Create data points
//! let x = vec![0.0, 1.0, 2.0, 3.0, 4.0];
//! let y = vec![0.0, 1.0, 0.0, 1.0, 0.0];
//!
//! // Fit a natural cubic spline
//! let spline = CubicSpline::natural(&x, &y)?;
//!
//! // Evaluate at intermediate points
//! let y_interp = spline.eval(1.5)?;
//! let dy_interp = spline.derivative(1.5)?;
//!
//! // Integrate
//! let integral = spline.integrate(0.0, 4.0)?;
//! # Ok::<(), barracuda::error::BarracudaError>(())
//! ```
//!
//! # Applications
//!
//! - Smooth curve fitting
//! - Surrogate model construction
//! - Data visualization
//! - Numerical integration of tabulated data
pub use ;
/// GPU shader for Ordinary Kriging interpolation (f64).
///
/// Entry points: `build_covariance`, `solve_kriging`, `interpolate_points`.
/// Supports spherical, exponential, Gaussian, and linear variogram models.
///
/// Applications: soil moisture mapping (airSpring), spatial data interpolation.
pub const WGSL_KRIGING_F64: &str = include_str!;