Recover Password

Or login with:

  • Facebookhttp://facebook.com/
  • Googlehttps://www.google.com/accounts/o8/id
  • Yahoohttp://yahoo.com/
get GPL
COST (GBP)
this unit 0.10
sub units 0.00
add licence
0

PDF

viewed 1976 times and licensed 76 times
Evaluates the normal probability density function.
Controller: CodeCogs

buy now get GPL add to cart

Interface

C++
HTML

PDF

 
doublePDFdoublex
doublem = 0
doubles = 1 )[inline]
This function evaluates the normal probability density function.

\graph  x=-4:4, m=0, s=1

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

xthe value at which to evaluate the function
mthe mean of the distribution
sthe 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.


 

Page Comments

 
 Format Excel Equations

  You must login to leave a messge