* Victor Bazarov:

TogaKangaroo wrote: A question I'm sure has come up before, but does anyone know how to

write/where to find the std for the equivalent of the normalpdf(X, mu,

sigma) function in matlab?

If this question has come up before, you should be able to find the

answer[s] to it on Google Groups (http://groups.google.com/)

For anyone who does not know what that is

it is the equivalent of finding the probability of X in a normal

distribution with mean mu and standard deviation sigma?

The Standard library doesn't have any probability functions. You

should try finding a suitable library on the Web. See the archives

on Google for the "Available C++ Libraries FAQ" posted here by Nikki

Locke about monthly. Follow the link in that post.

Or just Google for a definition of the function.

When I tried that the third Google hit gave a definition.

Now just translate that to C++, which should be trivial since all that's

needed is in the language and the standard library (header <cmath>), with

one exception: you'll have to compute pi, e.g. from arc cos, but this can be

done once at program startup.

--

A: Because it messes up the order in which people normally read text.

Q: Why is it such a bad thing?

A: Top-posting.

Q: What is the most annoying thing on usenet and in e-mail?