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 shared computational modules via Rcpp-wrapped functions:
Details
- Adjacency
Upper-triangle index pairs and vector/matrix conversions. See
connection_indices,network_to_vector,code_connections, andfold_directed_network.- Normalization
Row-wise L2 sphere norm and max-norm scaling. See
normalize_networksandscale_networks.- Modeling
Column centering, ENA correlation, and least-squares node positions (undirected and directed). See
center_points,ena_correlation,node_positions, anddirected_node_positions.- Accumulation
Stanza-window (rENA) and ground/response/tensor (tma) accumulation primitives. See
accumulate_stanza,accumulate_unit, andapply_tensor.- Door
Temporal pooling transforms for lookback and EMA-smoothed event streams. See
door_lookbackanddoor_ema.- Trajectory
Polynomial trajectory fitting, evaluation, derivative, and distance utilities. See
fit_trajectory_poly,eval_trajectory_curve, andintegrated_trajectory_distance.
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)