This is a C++ reimplementation of the original kemenydesign
function for improved computational efficiency. The function processes all
pairwise comparisons between M objects, generating M*(M-1)/2 binary features
that encode the ranking structure.
The optimization provides significant speedup (typically 20-50x) compared to
the R implementation, especially for large matrices.
References
D'Ambrosio, A. (2008). Tree based methods for data editing and
preference rankings. Unpublished PhD Thesis. Universita' degli Studi di
Napoli Federico II.
See Also
kemenydesign for the wrapper function
kemenyd for computing Kemeny distance using this design matrix