Expand description
kuji: stochastic sampling primitives.
This crate is meant to be a low-level “sampling toolbox” that other crates can depend on without pulling in domain-specific machinery.
Exposed modules:
reservoir: reservoir sampling (Algorithm L/R) + weighted reservoir.gumbel: Gumbel-max / Gumbel-top-k / relaxed k-hot.neighbor: simple neighborhood sampling helpers (useful for graph ML).qmc: quasi-Monte Carlo sequences (Sobol, Halton, Owen-scrambled Sobol).thinning: kernel thinning and herding (greedy coreset selection via MMD).
Re-exports§
pub use gumbel::gumbel_max_sample;pub use gumbel::gumbel_noise;pub use gumbel::gumbel_softmax;pub use gumbel::gumbel_topk_sample;pub use gumbel::gumbel_topk_sample_with_rng;pub use gumbel::relaxed_topk_gumbel;pub use neighbor::NeighborSampler;pub use qmc::halton_point;pub use qmc::halton_sequence;pub use qmc::sobol_scrambled;pub use qmc::sobol_sequence;pub use qmc::SobolGenerator;pub use reservoir::ReservoirSampler;pub use reservoir::ReservoirSamplerR;pub use reservoir::WeightedReservoirSampler;pub use tconorm::tconorm;pub use tconorm::tconorm_fold;pub use tconorm::tnorm;pub use tconorm::tnorm_fold;pub use tconorm::TConormFamily;pub use thinning::kernel_herd;pub use thinning::kernel_thin;pub use thinning::mmd_sq_from_gram;