fenwick_mmd/lib.rs
1#![forbid(unsafe_code)]
2//! # `fenwick-mmd`
3//!
4//! Formally verified, sub-quadratic minimax-optimal kernel two-sample testing (MMD)
5//! via compressed multidimensional Fenwick trees and orthantwise separable kernels.
6//!
7//! Based on Choi, Pandey, & Sarkar (2026), *"Minimax-Optimal Kernel Two-sample Testing
8//! in Sub-quadratic Time"* ([arXiv:2612.05470](https://arxiv.org/abs/2612.05470)).
9
10pub mod fenwick;
11pub mod kernels;
12pub mod mmd;
13
14#[cfg(feature = "python")]
15mod python;
16
17pub use fenwick::{CompressedFenwick, MultiChannelFenwick};
18pub use kernels::{Kernel1D, ProductKernel, PsTerm1D};
19pub use mmd::{
20 aggregated_mmd_test, fast_lower_triangular_sum, median_bandwidths, mmd_squared_exact_quadratic,
21 mmd_squared_fast, pca_mmd_test, permutation_test, AggregatedTestResult, MmdError,
22 PermutationTestResult, Rng,
23};