Question: Struggling to write a code for this in C++: 6. The probability density function (pdf) of the normal distribution with mean p and standard deviation
Struggling to write a code for this in C++:

6. The probability density function (pdf) of the normal distribution with mean p and standard deviation o is given by 1 (2-1)2 $(x;ji,o) 20? 2 e Write a function norm_pdf with three arguments (, 41,0) that returns this pdf. double norm_pdf (const double x, const double mu, const double sigma) { } As a check, two example values are p(1; 0, 1) = 0.242, 4(2; 1, 2) = 0.176
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
