hatvis.seriation.seriation_quality#

hatvis.seriation.seriation_quality(H, rows=None, cols=None)[source]#

Compactness of an ordered incidence matrix.

  • moore stress – \(\sum_{i,k}\big[(x_{ik}-x_{i+1,k})^2+(x_{ik}-x_{i,k+1})^2\big]\) on the 0/1 pattern (lower is better; Niermann 2005);

  • bond energy – \(\sum_{i,k}x_{ik}(x_{i+1,k}+x_{i,k+1})\) (higher is better; McCormick, Schweitzer and White 1972).

Examples using hatvis.seriation.seriation_quality#

Seriation of the incidence matrix

Seriation of the incidence matrix