libena 0.4.18-dev.9021
QE C++ library
Loading...
Searching...
No Matches
ccd.hpp File Reference

Cross-Covariance Decay (CCD) window-size estimation. More...

#include <armadillo>
#include <cmath>
#include <vector>

Go to the source code of this file.

Classes

struct  qe::CCDResult
 Result of a CCD window-size estimation. More...
 

Namespaces

namespace  qe
 

Functions

CCDResult qe::ccd_window (const std::vector< arma::mat > &conversations, int max_window=20, int min_overlap=10)
 Estimate the ENA moving-window size via cross-covariance decay.
 

Detailed Description

Cross-Covariance Decay (CCD) window-size estimation.

Estimates the ENA moving-window size from the "discourse coherence length": the half-life decay lag of the noise-corrected Frobenius norm of pooled conversation cross-covariance matrices.

Reference: Shaffer, D. W. & Cai, Z. (2026). Discourse Coherence Length: Noise-Corrected Covariance Estimation of Window-Size in Epistemic Network Analysis. International Conference on Quantitative Ethnography (ICQE26).

This kernel is pure-numeric: it consumes conversation subsets that have already been extracted from the raw data (one code matrix per conversation, rows in sequence). Column selection and conversation splitting belong in each language wrapper (cf. accumulation.hpp), so that the C++ core never touches data-frame semantics.