Returns an orthonormal basis for the span of the selected columns. This puts non-orthogonal pooling rules such as the column-normalised mean on the same footing as orthogonal ones when computing projections or clustering features.
Usage
orthonormalize(T, k = ncol(T), fix_sign = TRUE)