Evaluates the normal probability density function.
Controller: CodeCogs
Contents
Interface
C++
doublePDF( | double | x | |
double | m = 0 | ||
double | s = 1 | )[inline] |
There is an error with your graph parameters for PDF with options x=-4:4 m=0 s=1 "Standard Normal Distribution"
Error Message:Function PDF failed. Ensure that: Invalid C++
Example 1
#include <iostream> #include <codecogs/statistics/distributions/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.