R Under development (unstable) (2023-11-25 r85635 ucrt) -- "Unsuffered Consequences" Copyright (C) 2023 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library(HyperbolicDist) > if (FALSE){ + fileList <- list.files("../R/") + fileList <- fileList[-grep(".+~",fileList)] + fileNames <- paste("../R/", fileList, sep = "") + lapply(fileNames,source) + } > sampSize <- 100000 > Theta <- c(2,2,1,2,1) > mu <- Theta[5] > dataVector <- rghyp(sampSize, Theta) > ### Test ghypMean > (m1 <- ghypMean(Theta)) [1] 3.125532 > momIntegrated("ghyp", order = 1, param = Theta, about = 0) [1] 3.125532 > > ### Test ghypVar > ghypVar(Theta) [1] 3.192044 > ghypMom(2, Theta, momType = "central") [1] 3.192044 > momIntegrated("ghyp", order = 2, param = Theta, about = m1) [1] 3.192044 > var(dataVector) [1] 3.228258 > > ### Test ghypSkew > ghypSkew(Theta) [1] 0.7928604 > skewness(dataVector) [1] 0.799981 > > ### Test ghypKurt > ghypKurt(Theta) [1] 1.343511 > kurtosis(dataVector) [1] 1.382943 > > > > proc.time() user system elapsed 0.50 0.04 0.53