z's
On Tue, 5 Jun 2001, Dalibor Zovko wrote:
I need help for one program. It is about Gauss distribution. I do not know how can I make this program in C++. Exactly I must make this, that it can calculate a probability for value of variable z in interval (z1,z2) It is surface under normal distribution line. Please if there is anybody who can help me, I will be glad so. One student zdenko.zovko at tel.net.ba
Dalibor, Try: pnorm(z2, mean=0, sd=1) - pnorm(z1, mean=0, sd=1) or something along those lines in R. Dave. ********************************************************************** ** Dr. David Lucy ** ** Joseph Bell Centre for Forensic Statistics and Legal Reasoning ** ** Department of Mathematics and Statistics ** ** The University of Edinburgh ** ** James Clerk Maxwell Building ** ** King's Buildings ** ** Mayfield Road ** ** Edinburgh ** ** EH9 3JZ ** ** ** ** tel: 0131 650 5057 ** ** extension: 505057 ** ** e-mail: dlucy at maths.ed.ac.uk ** ** ** ** Truncated address: ** ** ** ** Dr. David Lucy ** ** Department of Mathematics ** ** JCMB ** ** King's Buildings ** ** Edinburgh University ** ** Edinburgh ** ** EH9 3JZ ** ********************************************************************** -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._