The two-parameter Weibull probability density function
Controller: CodeCogs
Contents
Interface
C++
doublePDF( | double | x | |
double | a | ||
double | b | ) |
There is an error with your graph parameters for PDF with options x=50:150 a=5:20:4 b=100
In its standard form, b=1, therefore
Error Message:Function PDF failed. Ensure that: Invalid C++
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; }
OutputPDF(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.