Skip to contents

Header-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, and fold_directed_network.

Normalization

Row-wise L2 sphere norm and max-norm scaling. See normalize_networks and scale_networks.

Modeling

Column centering, ENA correlation, and least-squares node positions (undirected and directed). See center_points, ena_correlation, node_positions, and directed_node_positions.

Accumulation

Stanza-window (rENA) and ground/response/tensor (tma) accumulation primitives. See accumulate_stanza, accumulate_unit, and apply_tensor.

Door

Temporal pooling transforms for lookback and EMA-smoothed event streams. See door_lookback and door_ema.

Trajectory

Polynomial trajectory fitting, evaluation, derivative, and distance utilities. See fit_trajectory_poly, eval_trajectory_curve, and integrated_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)