All functions

tgs_cor() tgs_cor_knn()

Calculates correlation or auto-correlation

tgs_dist()

Calculates distances between the matrix rows

tgs_finite()

Checks whether all the elements of the vector are finite

tgs_graph()

Builds directed graph of correlations

tgs_graph_cover()

Clusters directed graph

tgs_graph_cover_resample()

Clusters directed graph multiple times with randomized sample subset

tgs_knn()

Returns k highest values of each column

tgs_matrix_tapply()

For each matrix row apply a function over a ragged array