#[cfg(feature = "gpu")]
pub const WGSL_BOOTSTRAP_MEAN_F64: &str =
include_str!("../shaders/special/bootstrap_mean_f64.wgsl");
#[cfg(feature = "gpu")]
pub const WGSL_HISTOGRAM_F64: &str = include_str!("../shaders/stats/histogram_f64.wgsl");
#[cfg(feature = "gpu")]
pub static WGSL_HISTOGRAM_F32: std::sync::LazyLock<String> =
std::sync::LazyLock::new(|| include_str!("../shaders/stats/histogram_f64.wgsl").to_string());
pub mod bootstrap;
pub mod chi2;
pub mod correlation;
pub mod diversity;
pub mod evolution;
pub mod histogram;
pub mod hydrology;
pub mod jackknife;
pub mod metrics;
pub mod moving_window_f64;
pub mod normal;
pub mod regression;
pub mod spectral_density;
pub mod welford;
#[cfg(feature = "gpu")]
pub use bootstrap::BootstrapMeanGpu;
pub use bootstrap::{
BootstrapCI, bootstrap_ci, bootstrap_mean, bootstrap_median, bootstrap_std, rawr_mean,
};
pub use chi2::{Chi2Decomposed, chi2_decomposed, chi2_decomposed_weighted};
pub use correlation::{
correlation_matrix, covariance, covariance_matrix, pearson_correlation, spearman_correlation,
};
pub use diversity::{
AlphaDiversity, alpha_diversity, bray_curtis, bray_curtis_condensed, bray_curtis_matrix, chao1,
chao1_classic, condensed_index, observed_features, pielou_evenness, rarefaction_curve, shannon,
shannon_from_frequencies, simpson,
};
#[cfg(feature = "gpu")]
pub use evolution::KimuraGpu;
pub use evolution::{detection_power, detection_threshold, error_threshold, kimura_fixation_prob};
#[cfg(feature = "gpu")]
pub use histogram::HistogramGpu;
#[cfg(feature = "gpu")]
pub use hydrology::HargreavesBatchGpu;
#[cfg(feature = "gpu")]
pub use hydrology::{
Fao56BaseInputs, Fao56Uncertainties, McEt0PropagateGpu, SeasonalGpuParams, SeasonalOutput,
SeasonalPipelineF64,
};
pub use hydrology::{
crop_coefficient, fao56_et0, hamon_et0, hargreaves_et0, hargreaves_et0_batch, makkink_et0,
soil_water_balance, thornthwaite_et0, thornthwaite_heat_index, turc_et0,
};
#[cfg(feature = "gpu")]
pub use jackknife::JackknifeMeanGpu;
pub use jackknife::{JackknifeResult, jackknife, jackknife_mean_variance};
pub use metrics::{
dot, hill, hill_activation, hill_repression, hit_rate, index_of_agreement, l2_norm, mae, mbe,
mean, monod, nash_sutcliffe, percentile, r_squared, rmse,
};
pub use moving_window_f64::{MovingWindowResultF64, moving_window_stats_f64};
pub use normal::{norm_cdf, norm_cdf_batch, norm_pdf, norm_pdf_batch, norm_ppf};
pub use regression::{
FitResult, fit_all, fit_exponential, fit_linear, fit_logarithmic, fit_quadratic,
};
pub use spectral_density::{empirical_spectral_density, marchenko_pastur_bounds};
pub use welford::{WelfordCovState, WelfordState};