libqe: Shared C++ Core for Quantitative Ethnography Packages
Source:R/libqe-package.R
libqe-package.RdHeader-only C++ library providing shared computational primitives for
rENA, tma, and other Quantitative Ethnography packages. Exposes four
modules via Rcpp-wrapped lq_* functions:
Details
- Adjacency
Upper-triangle index pairs and vector/matrix conversions. See
lq_tri_indices,lq_vector_to_upper_tri,lq_svector_to_upper_tri.- Normalization
Row-wise L2 sphere norm and max-norm scaling. See
lq_sphere_norm,lq_skip_sphere_norm.- Modeling
Column centering, ENA correlation, and least-squares node positions (undirected and directed). See
lq_center_data,lq_ena_correlation,lq_lws_lsq_positions,lq_directed_node_positions.- Accumulation
Stanza-window (rENA) and ground/response/tensor (tma) accumulation primitives. See
lq_stanza_window,lq_accumulate_unit,lq_apply_tensor.
Using libqe headers in your own R package:
Add to DESCRIPTION:
LinkingTo: Rcpp, RcppArmadillo, libqe
Then in your .cpp source:
// [[Rcpp::depends(RcppArmadillo, libqe)]]
#include <RcppArmadillo.h>
#include <libqe/libqe.hpp>
Author
Maintainer: Cody L Marquart cody.marquart@wisc.edu (ORCID)