Iz Wikipedije, proste enciklopedije
Probability density function for the normal distribution
gnuplot source under GPL:
_ln_dnorm(x, m, s) = -0.5 * log(2*pi) - log(s) - 0.5*((x-m)*1.0/s)**2
dnorm(x, mean, sd) = exp(_ln_dnorm(x, mean, sd))
pnorm(x, mean, sd) = norm((x-mean) * 1.0/sd)
set samples 1001
set terminal postscript enhanced color solid lw 2 "Times-Roman" 20
set output
set xrange [-5:5]
set xtics 1
set yrange [0:1]
set ytics 0.1
f(x,y,z) = dnorm(x, y, sqrt(z)) #use variance, not sd!
set key 3.8,0.94
#f(x,y,z) = pnorm(x, y, sqrt(z))
#set key 3.8,0.2
plot \
f(x, 0, 0.2) title "{/Symbol m} = 0, {/Symbol s}^2 = 0.2", \
 |
This work is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This work is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. |
Strani z datoteko
Datoteka je del naslednjih strani slovenske Wikipedije (strani drugih projektov niso navedene):