sliding-quantile 0.1.0

Moving quantile over a sliding window of size N with O(1) queries, O(log N) updates, and O(N) memory.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#![cfg_attr(doc, doc = include_str!("../README.md"))]
#![no_std]
#![cfg_attr(docsrs, feature(doc_cfg))]

#[cfg(any(feature = "std", feature = "alloc"))]
extern crate alloc;

#[cfg(not(any(feature = "std", feature = "libm")))]
compile_error!("Either feature \"std\" or \"libm\" must be enabled for this crate.");

#[cfg(not(any(feature = "std", feature = "libm")))]
use num_traits as _;

#[cfg(any(feature = "std", feature = "libm"))]
mod lib_actual;

#[cfg(any(feature = "std", feature = "libm"))]
pub use lib_actual::*;