r/dist/normal: add mean and stddev accessors

This commit is contained in:
Danny Robson 2020-12-09 08:19:55 +10:00
parent 8228a9be0f
commit 7b070a86ad

View File

@ -77,6 +77,10 @@ namespace cruft::rand::distribution {
}
result_type mean (void) const { return m_param.mean; }
result_type stddev (void) const { return m_param.stddev; }
private:
template <typename GeneratorT>
std::tuple<result_type, result_type, result_type>