|
libstdc++
|
Go to the source code of this file.
Namespaces | |
| namespace | std |
Macros | |
| #define | __cpp_lib_experimental_sample |
| #define | _GLIBCXX_EXPERIMENTAL_ALGORITHM |
This is a TS C++ Library header.
Definition in file experimental/algorithm.
| #define __cpp_lib_experimental_sample |
Definition at line 56 of file experimental/algorithm.
| #define _GLIBCXX_EXPERIMENTAL_ALGORITHM |
Definition at line 30 of file experimental/algorithm.
| _OutputIterator std::experimental::fundamentals_v1::__sample | ( | _ForwardIterator | __first, |
| _ForwardIterator | __last, | ||
| forward_iterator_tag | , | ||
| _OutputIterator | __out, | ||
| _Cat | , | ||
| _Size | __n, | ||
| _UniformRandomNumberGenerator && | __g | ||
| ) |
Selection sampling algorithm.
Definition at line 89 of file experimental/algorithm.
| _RandomAccessIterator std::experimental::fundamentals_v1::__sample | ( | _InputIterator | __first, |
| _InputIterator | __last, | ||
| input_iterator_tag | , | ||
| _RandomAccessIterator | __out, | ||
| random_access_iterator_tag | , | ||
| _Size | __n, | ||
| _UniformRandomNumberGenerator && | __g | ||
| ) |
Reservoir sampling algorithm.
Definition at line 62 of file experimental/algorithm.
| _SampleIterator std::experimental::fundamentals_v1::sample | ( | _PopulationIterator | __first, |
| _PopulationIterator | __last, | ||
| _SampleIterator | __out, | ||
| _Distance | __n, | ||
| _UniformRandomNumberGenerator && | __g | ||
| ) |
Take a random sample from a population.
Definition at line 111 of file experimental/algorithm.
|
inline |
Definition at line 52 of file experimental/algorithm.