get_HDF5_scalar_sd
C++ Function Reference
1 Signature
double BigDataStatMeth::get_HDF5_scalar_sd(BigDataStatMeth::hdf5Dataset *dsA, bool bparal, Rcpp::Nullable< int > wsize, Rcpp::Nullable< int > threads)2 Description
Standard deviation of all elements of an HDF5 matrix.
3 Parameters
dsA(BigDataStatMeth::hdf5Dataset *): Open HDF5 dataset.bparal(bool): Enable OpenMP parallelism.wsize(Rcpp::Nullable< int >): Block size (NULL = auto).threads(Rcpp::Nullable< int >): Thread count (NULL = auto).
4 Returns
Scalar standard deviation.
5 Details
Equivalent to sd(as.vector(X)) — uses Bessel’s correction (N-1).
6 Call Graph
7 Source Code
NoteImplementation
File: inst/include/hdf5Algebra/matrixAggregations.hpp • Lines 1178-1189
inline double get_HDF5_scalar_sd(BigDataStatMeth::hdf5Dataset* dsA,
bool bparal,
Rcpp::Nullable<int> wsize,
Rcpp::Nullable<int> threads)
{
try {
return std::sqrt(get_HDF5_scalar_var(dsA, bparal, wsize, threads));
} catch (std::exception& e) {
throw std::runtime_error(std::string("c++ exception get_HDF5_scalar_sd: ")
+ e.what());
}
}8 Usage Example
#include "BigDataStatMeth.hpp"
// Example usage
auto result = get_HDF5_scalar_sd(...);