Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/numeric/random/fisher f distribution"

From cppreference.com
< cpp‎ | numeric‎ | random
m (Shorten template names. Use {{lc}} where appropriate.)
m (Update links.)
Line 21: Line 21:
 
===Member functions===
 
===Member functions===
 
{{dsc begin}}
 
{{dsc begin}}
{{dsc inc | cpp/numeric/random/distribution/dcl list constructor | fisher_f_distribution}}
+
{{dsc inc | cpp/numeric/random/distribution/dsc constructor | fisher_f_distribution}}
{{dsc inc | cpp/numeric/random/distribution/dcl list reset | fisher_f_distribution}}
+
{{dsc inc | cpp/numeric/random/distribution/dsc reset | fisher_f_distribution}}
  
 
{{dsc h2 | Generation}}
 
{{dsc h2 | Generation}}
{{dsc inc | cpp/numeric/random/distribution/dcl list operator() | fisher_f_distribution}}
+
{{dsc inc | cpp/numeric/random/distribution/dsc operator() | fisher_f_distribution}}
  
 
{{dsc h2 | Characteristics}}
 
{{dsc h2 | Characteristics}}
{{dsc inc | cpp/numeric/random/fisher_f_distribution/dcl list param m}}
+
{{dsc inc | cpp/numeric/random/fisher_f_distribution/dsc param m}}
{{dsc inc | cpp/numeric/random/fisher_f_distribution/dcl list param n}}
+
{{dsc inc | cpp/numeric/random/fisher_f_distribution/dsc param n}}
{{dsc inc | cpp/numeric/random/distribution/dcl list param | fisher_f_distribution}}
+
{{dsc inc | cpp/numeric/random/distribution/dsc param | fisher_f_distribution}}
{{dsc inc | cpp/numeric/random/distribution/dcl list min | fisher_f_distribution}}
+
{{dsc inc | cpp/numeric/random/distribution/dsc min | fisher_f_distribution}}
{{dsc inc | cpp/numeric/random/distribution/dcl list max | fisher_f_distribution}}
+
{{dsc inc | cpp/numeric/random/distribution/dsc max | fisher_f_distribution}}
 
{{dsc end}}
 
{{dsc end}}
  
 
===Non-member functions===
 
===Non-member functions===
 
{{dsc begin}}
 
{{dsc begin}}
{{dsc inc | cpp/numeric/random/distribution/dcl list operator_cmp | fisher_f_distribution}}
+
{{dsc inc | cpp/numeric/random/distribution/dsc operator_cmp | fisher_f_distribution}}
{{dsc inc | cpp/numeric/random/distribution/dcl list operator_ltltgtgt | fisher_f_distribution}}
+
{{dsc inc | cpp/numeric/random/distribution/dsc operator_ltltgtgt | fisher_f_distribution}}
 
{{dsc end}}
 
{{dsc end}}
  

Revision as of 22:19, 31 May 2013

 
 
 
 
 
Defined in header <random>
template< class RealType = double >
class fisher_f_distribution;
(since C++11)

The fisher_f_distribution class is a Template:concept that produces random numbers according to the f-distribution:

p(x;m,n) =
Γ((m+n)/2)
Γ(m/2) Γ(n/2)
(m/n)m/2 x(m/2)-1 (1+
mx
n
)-(m+n)/2

m and n are the degrees of freedom.

Contents

Member types

Member type Definition
result_type RealType
param_type the type of the parameter set, unspecified

Member functions

Template:cpp/numeric/random/fisher f distribution/dsc param mTemplate:cpp/numeric/random/fisher f distribution/dsc param n
constructs new distribution
(public member function) [edit]
(C++11)
resets the internal state of the distribution
(public member function) [edit]
Generation
generates the next random number in the distribution
(public member function) [edit]
Characteristics
(C++11)
gets or sets the distribution parameter object
(public member function) [edit]
(C++11)
returns the minimum potentially generated value
(public member function) [edit]
(C++11)
returns the maximum potentially generated value
(public member function) [edit]

Non-member functions

(C++11)(C++11)(removed in C++20)
compares two distribution objects
(function) [edit]
performs stream input and output on pseudo-random number distribution
(function template) [edit]

Example

External links

Weisstein, Eric W. "F-Distribution." From MathWorld--A Wolfram Web Resource.