random_sample.hpp File Reference

Go to the source code of this file.

Namespaces

 atria
 C++ amazing templates and reusable implementations awesomeness.
 
 atria::xform
 Efficient and flexible C++ implementation of transducers.
 

Macros

#define ABL_XFORM_DEFAULT_RANDOM_ENGINE   ::std::default_random_engine
 

Functions

template<typename ProbabilityT , typename GeneratorT = detail::default_generator>
auto random_sample (ProbabilityT prob, GeneratorT generator=GeneratorT{}) -> decltype(filter(detail::random_sampler< ProbabilityT, GeneratorT >
 Similar to clojure.core/random-sample$1. More...
 
Fork me on GitHub