https://github.com/cran/pracma
Tip revision: a9b4d5f19cb88cd9d0d31fdde0d654737327d085 authored by HwB on 15 April 2012, 00:00:00 UTC
version 1.0.5
version 1.0.5
Tip revision: a9b4d5f
vnorm.R
##
## v n o r m Test suite
##
vnorm <- pracma::vnorm
identical(vnorm(c(3, 4)), 5)
identical(vnorm(c(1, 1, 1), p=2), sqrt(3))
identical(vnorm(1:10, p = 1), sum(1:10)+0.0)
identical(vnorm(1:10, p = 0), Inf)
identical(vnorm(1:10, p = Inf), max(1:10))
identical(vnorm(1:10, p = -Inf), min(1:10))