52 template<
typename GeneratorType = std::mt19937>
60 std::bernoulli_distribution
dist(
inP);
74 template<
typename GeneratorType = std::mt19937>
84 std::bernoulli_distribution
dist(
inP);
88 [&
generator, &
dist](
bool& value) ->
void { value = dist(generator); });
#define THROW_INVALID_ARGUMENT_ERROR(msg)
Definition Error.hpp:37
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition NdArrayCore.hpp:139
A Shape Class for NdArrays.
Definition Core/shape.hpp:41
bool bernoulli(GeneratorType &generator, double inP=0.5)
Definition Random/bernoulli.hpp:53
Definition Random/bernoulli.hpp:41
bool bernoulli(double inP=0.5)
Definition Random/bernoulli.hpp:101
std::mt19937_64 generator_
generator function
Definition generator.hpp:35
NdArray< dtype > arange(dtype inStart, dtype inStop, dtype inStep=1)
Definition arange.hpp:59