Evaluates the normal probability density function.
Contents
Interface
C++
Excel
doublePDF( | double | x | |
double | m = 0 | ||
double | s = 1 | )[inline] |
MISSING IMAGE!
1/normpdf-1.gif cannot be found in /users/1/normpdf-1.gif. Please contact the submission author.
Example 1
#include <iostream> #include <codecogs/stats/dists/continuous/normal/pdf.h> int main() { std::cout << "normal PDF (2.31, 2, 5) = "; std::cout << Stats::Dists::Continuous::Normal::PDF(2.31, 2, 5) << std::endl; return 0; }
Output:normal PDF (2.31, 2, 5) = 0.0796352
Parameters
x the value at which to evaluate the function m the mean of the distribution s the standard deviation of the distribution
Authors
- Lucian Bentea (September 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.