#include <vtkCosineSimilarity.h>
Treats a matrix as a collection of vectors and computes the cosine similarity between each pair vectors, returning the results as an edge-table that includes the index of each vector with their computed similarity.
Note that the complexity of this filter is quadratic!