The cauchy_distribution::a() function is an inbuilt function in C++ STL which is used to returns the distribution parameter associated with Cauchy distribution. The class cauchy_distribution is present in header file random. Before going to the syntax of the function, brief introduction to Cauchy Distribution.
Cauchy Distribution A random variable X is said to follow Cauchy Distribution with parameter a and b if it has the probability density function of the form,
Where a is the location parameter specifying the location of peak of the distribution and b is the scale parameter specifying the half-width at half-maximum. Mean and Variance of the distribution is not defined, but its median and mode both exists and equals to a.
Parameters: This function does not accepts any parameter.
Return Value: The function returns the distribution parameter associated with the distribution. This parameter is known as the peak location parameter of the Cauchy distribution, which determines the shift to either side of the distribution shape. The parameter is set on construction.
Below programs illustrates the cauchy_distribution::a() function in C++ STL:
Cauchy distribution: 0.78
Cauchy distribution: 0
- cin get() in C++ with Examples
- C/C++ while loop with Examples
- set_symmetric_difference in C++ with Examples
- ratio_equal() in C++ with examples
- scanf("%[^\n]s", str) Vs gets(str) in C with Examples
- Manipulators in C++ with Examples
- C/C++ if statement with Examples
- C/C++ do while loop with Examples
- C/C++ if else if ladder with Examples
- C/C++ if else statement with Examples
- SDL library in C/C++ with examples
- std::mismatch() with examples in C++
- C/C++ For loop with Examples
- wmemset() in C/C++ with Examples
- ratio_not_equal() in C++ with examples
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.