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.- Statistics
Column centering, confidence intervals and two-group tests. See
center_points,mean_ci,outlier_ci, andgroup_stats.- 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.
The ENA model code (rotations, node positions, CCD) is in rENA and all accumulation is in tma.
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)