Namespaces
Variants
Views
Actions

std::cauchy_distribution

From cppreference.com
< cpp‎ | numeric‎ | random
Revision as of 21:44, 2 November 2012 by P12bot (Talk | contribs)

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

Produces random numbers according to a Cauchy distribution (also called Lorentz distribution):

f(x; a,b) =



1 +

x - a
b


2




-1

Contents

Member types

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

Member functions

Template:cpp/numeric/random/distribution/dcl list constructorTemplate:cpp/numeric/random/distribution/dcl list resetTemplate:cpp/numeric/random/distribution/dcl list operator()Template:cpp/numeric/random/cauchy distribution/dcl list aTemplate:cpp/numeric/random/cauchy distribution/dcl list bTemplate:cpp/numeric/random/distribution/dcl list paramTemplate:cpp/numeric/random/distribution/dcl list minTemplate:cpp/numeric/random/distribution/dcl list max
Generation
Characteristics

Non-member functions

Template:cpp/numeric/random/distribution/dcl list operator cmpTemplate:cpp/numeric/random/distribution/dcl list operator ltltgtgt

Example

External links

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