Search notes:

R function: sd

#
#  Standard distribution (or deviation?)

d <- rnorm(10000, 10, 4)
#
#  We expect a result of ca 4 because the 3rd 
#  argument to rnorm is the standard deviation
#
sd(d)

#
#  The standard deviation can also be more verbosely
#  be expressed like so:
#
m <- mean(d)
sqrt(sum((d - m)^2) / (length(d)-1))

Github repository about-r, path: /functions/sd.R

See also

rnorm(…) Index to (some) R functions

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1758200928, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/R/functions/sd(54): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78