454,922 Members | 1,207 Online
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,922 IT Pros & Developers. It's quick & easy.

# The equivalent of normalpdf()?

 P: n/a 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? 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? Jul 28 '05 #1
8 Replies

 P: n/a 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. V Jul 28 '05 #2

 P: n/a Alf P. Steinbach wrote:you'll have to compute pi, e.g. from arc cos, but this can be done once at program startup. Isn't M_PI included by reference from via ? Jul 28 '05 #4

 P: n/a * red floyd: Alf P. Steinbach wrote:you'll have to compute pi, e.g. from arc cos, but this can be done once at program startup. Isn't M_PI included by reference from via ? It isn't standard but often exists. I don't any longer have an installation of the OP's compiler so can't check that. -- 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? Jul 28 '05 #5

 P: n/a On Thu, 28 Jul 2005 04:18:12 GMT, red floyd wrote in comp.lang.c++: Alf P. Steinbach wrote:you'll have to compute pi, e.g. from arc cos, but this can be done once at program startup. Isn't M_PI included by reference from via ? There is no M_PI macro in either standard C or standard C++. An implementation cannot define this symbol in a standard header if invoked in strictly conforming mode. -- Jack Klein Home: http://JK-Technology.Com FAQs for comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html comp.lang.c++ http://www.parashift.com/c++-faq-lite/ alt.comp.lang.learn.c-c++ http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html Jul 28 '05 #6

 P: n/a I'm sorry, but that is incredibly unhelpful...I've been trying...what did you search for to find pseudocode? A simple link would be real nice if you found it. Yes, I see the thing from codecogs, but I don't have an account there so it's really just taunting me...much like you are. Also, I certainly would try to find it in the forum but there's not exactly a phrase to search for is it? "normpdf" and "normal pdf" didn't give me anything, I'm lost after that. I'm sorry for reposting uninteresting questions but I figure that the veterans could easily redirect me and the subject could die off quickly. Jul 28 '05 #7

 P: n/a TogaKangaroo wrote: Also, I certainly would try to find it in the forum but there's not exactly a phrase to search for is it? "normpdf" and "normal pdf" didn't give me anything, I'm lost after that. Try normal probability distribution function. Jul 28 '05 #8

 P: n/a * TogaKangaroo: I'm sorry, but that is incredibly unhelpful...I've been trying...what did you search for to find pseudocode? "normalpdf" Which gave a formula. Pseudocode is something else and irrelevant here. That wasn't so incredibly hard, was it? -- 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? Jul 28 '05 #9

### This discussion thread is closed

Replies have been disabled for this discussion.