Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/numeric/random/gamma distribution/params"

From cppreference.com
m (langlinks)
m (.)
 
Line 2: Line 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;
 
}}
 
}}
Line 20: Line 20:
  
 
===Return value===
 
===Return value===
@1@ Floating point value identifying the {{math|α}} parameter
+
@1@ Floating point value identifying the {{math|α}} parameter
  
@2@ Floating point value identifying the {{math|β}} parameter
+
@2@ Floating point value identifying the {{math|β}} parameter
  
 
===See also===
 
===See also===
 
{{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|de|es|fr|it|ja|pt|ru|zh}}
 
{{langlinks|de|es|fr|it|ja|pt|ru|zh}}

Latest revision as of 00:43, 2 May 2023

 
 
 
 
std::gamma_distribution
Member functions
Generation
Characteristics
gamma_distribution::alphagamma_distribution::beta
Non-member functions
(C++11)(C++11)(until C++20)
(C++11)(C++11)
 
RealType alpha() const;
(1) (since C++11)
RealType beta() const;
(2) (since C++11)

Returns the distribution parameters the distribution has been constructed with.

1) Returns the α distribution parameter. It is also known as the shape parameter. The default value is 1.0.
2) Returns the β distribution parameter. It is also known as the scale parameter. The default value is 1.0.

[edit] Parameters

(none)

[edit] Return value

1) Floating point value identifying the α parameter.
2) Floating point value identifying the β parameter.

[edit] See also

(C++11)
gets or sets the distribution parameter object
(public member function) [edit]