mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
add normal_distribution::stddev
This commit is contained in:
parent
225c11b505
commit
f37e8a9088
19 changed files with 261 additions and 211 deletions
|
@ -44,22 +44,22 @@ namespace sprout {
|
|||
SPROUT_CONSTEXPR random_result_type operator()() const {
|
||||
return distribution_(engine_);
|
||||
}
|
||||
engine_reference_type engine() {
|
||||
engine_reference_type engine() SPROUT_NOEXCEPT {
|
||||
return engine_helper_type::ref(engine_);
|
||||
}
|
||||
SPROUT_CONSTEXPR engine_const_reference_type engine() const {
|
||||
SPROUT_CONSTEXPR engine_const_reference_type engine() const SPROUT_NOEXCEPT {
|
||||
return engine_helper_type::ref(engine_);
|
||||
}
|
||||
distribution_reference_type distribution() {
|
||||
distribution_reference_type distribution() SPROUT_NOEXCEPT {
|
||||
return distribution_helper_type::ref(distribution_);
|
||||
}
|
||||
SPROUT_CONSTEXPR distribution_const_reference_type distribution() const {
|
||||
SPROUT_CONSTEXPR distribution_const_reference_type distribution() const SPROUT_NOEXCEPT {
|
||||
return distribution_helper_type::ref(distribution_);
|
||||
}
|
||||
SPROUT_CONSTEXPR result_type min() const {
|
||||
SPROUT_CONSTEXPR result_type min() const SPROUT_NOEXCEPT {
|
||||
return distribution_.min();
|
||||
}
|
||||
SPROUT_CONSTEXPR result_type max() const {
|
||||
SPROUT_CONSTEXPR result_type max() const SPROUT_NOEXCEPT {
|
||||
return distribution_.max();
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue