Learn R Programming

BigDataStatMeth (version 2.0.3)

rcpp_hdf5dataset_scalar_var: Variance of all elements of an HDF5 dataset (R6 wrapper)

Description

Block-wise computation of var(as.vector(X)). Uses Bessel's correction (N-1) where N is the total number of elements.

Usage

rcpp_hdf5dataset_scalar_var(ptr, paral = NULL, wsize = NULL, threads = NULL)

Value

Scalar numeric.

Arguments

ptr

External pointer (SEXP) to an open hdf5Dataset.

paral

Logical or NULL; enable OpenMP parallelisation.

wsize

Integer or NULL; block size (NULL = auto).

threads

Integer or NULL; thread count (NULL = auto).