“cpp/numeric/random/gamma distribution/params”的版本间的差异
来自cppreference.com
< cpp | numeric | random | gamma distribution
(以“{{cpp/numeric/random/gamma_distribution/title|alpha, beta}} {{cpp/numeric/random/gamma_distribution/navbar}} {{dcl begin}} {{dcl | since=c++11 | num=1 | 1= RealType ...”为内容创建页面) |
小 |
||
(未显示1个用户的1个中间版本) | |||
第2行: | 第2行: | ||
{{cpp/numeric/random/gamma_distribution/navbar}} | {{cpp/numeric/random/gamma_distribution/navbar}} | ||
{{dcl begin}} | {{dcl begin}} | ||
− | {{dcl | since=c++11 | num=1 | 1= | + | {{dcl|since=c++11|num=1|1= |
RealType alpha() const; | RealType alpha() const; | ||
}} | }} | ||
− | {{dcl | since=c++11 | num=2 | 1= | + | {{dcl|since=c++11|num=2|1= |
RealType beta() const; | RealType beta() const; | ||
}} | }} | ||
第12行: | 第12行: | ||
返回构造分布所用的分布参数。 | 返回构造分布所用的分布参数。 | ||
− | @1@返回 {{math|α}} 分布参数。它又称为形状参数。默认值为 {{c|1.0}} | + | @1@ 返回 {{math|α}} 分布参数。它又称为形状参数。默认值为 {{c|1.0}}。 |
− | @2@返回 {{math|β}} 分布参数。它又称为尺度参数。默认值为 {{c|1.0}} | + | @2@ 返回 {{math|β}} 分布参数。它又称为尺度参数。默认值为 {{c|1.0}}。 |
===参数=== | ===参数=== | ||
第20行: | 第20行: | ||
===返回值=== | ===返回值=== | ||
− | @1@标识 {{math|α}} 参数的浮点值。 | + | @1@ 标识 {{math|α}} 参数的浮点值。 |
− | @2@标识 {{math|β}} 参数的浮点值。 | + | @2@ 标识 {{math|β}} 参数的浮点值。 |
===参阅=== | ===参阅=== | ||
{{dsc begin}} | {{dsc begin}} | ||
− | {{dsc inc | cpp/numeric/random/distribution/dsc param | gamma_distribution}} | + | {{dsc inc|cpp/numeric/random/distribution/dsc param|gamma_distribution}} |
{{dsc end}} | {{dsc end}} | ||
− | {{langlinks|en}} | + | {{langlinks|en}} |
2024年2月19日 (一) 09:57的最后版本
RealType alpha() const; |
(1) | (C++11 起) |
RealType beta() const; |
(2) | (C++11 起) |
返回构造分布所用的分布参数。
1) 返回 α 分布参数。它又称为形状参数。默认值为 1.0。
2) 返回 β 分布参数。它又称为尺度参数。默认值为 1.0。
[编辑] 参数
(无)
[编辑] 返回值
1) 标识 α 参数的浮点值。
2) 标识 β 参数的浮点值。
[编辑] 参阅
(C++11) |
获取或设置随机参数对象 (公开成员函数) |