std::vector<std::pair<Index, int> > syten::Delinearise::calculate_scores | ( | std::vector< DenseTensor< 1, Scalar > > const & | columns, |
std::vector< DenseTensor< 1, Scalar > > const & | thresh | ||
) |
Calculates the zeroness score of all columns comparing against all others.
A columns zeroness score is the number of columns beat by this column minus the number of columns which beat this column. Column A beats column B
thresh[A]
and thresh[B]
respectively)columns[A]
and columns[B]
respectively)References count_all_zeros(), and count_bottom_zeros().
Referenced by permute().