• http://facebook.com/
• https://www.google.com/accounts/o8/id
• https://me.yahoo.com COST (GBP) 1.00 0.00 0

# PDF

The two-parameter Weibull probability density function
Controller: CodeCogs Contents  C++

## PDF

 doublePDF( double x double a double b )
The Weibull distribution is a two-parameter distribution named after Waloddi Weibull. It is often also called the Rosin-Rammler distribution when used to describe the size distribution of particles.

The probability density function, given by
There is an error with your graph parameters for PDF with options x=50:150 a=5:20:4 b=100

Error Message:Function PDF failed. Ensure that: Invalid C++

In its standard form, b=1, therefore
There is an error with your graph parameters for PDF with options x=0:2 a=5:20:4 b=1

Error Message:Function PDF failed. Ensure that: Invalid C++

## References:

• M.Abramowitz and I.A.Stegun, Handbook of Mathematical Functions, 1964 chapt.26.1; http://www.weibull.com
• Weibull, W. (1951) A statistical distribution function of wide applicability. J. Appl. Mech.-Trans. ASME 18(3), 293-297

### Example 1

#include <iostream>
#include <codecogs/statistics/distributions/continuous/weibull/pdf.h>
using namespace Stats::Dists::Continuous::Weibull;

int main()
{
std::cout << "PDF(105,20,100) = " << PDF( 105, 20, 100 ) << std::endl;
return 0;
}
Output
PDF(105,20,100) = 0.035589

### Parameters

 x the value at which to evaluate the distribution a shape parameter b scale parameter

### Returns

probability density value

### Authors

Anatoly Prognimack (Mar 19, 2005)
Developed and tested with: Borland C++ 3.1 for DOS and Microsoft Visual C++ 5.0, 6.0
Updated by Will Bateman (March 2005)
##### Source Code

Source code is available when you agree to a GP Licence or buy a Commercial Licence.

Not a member, then Register with CodeCogs. Already a Member, then Login.

Last Modified: 17 Apr 13 @ 18:30     Page Rendered: 2022-03-14 15:16:37