inconsistent

Function inconsistent 

Source
pub fn inconsistent<F: Float + FromPrimitive + Debug>(
    z: &Array2<F>,
    d: Option<usize>,
) -> Result<Array2<F>>
Expand description

Calculates the inconsistency of each merge in the linkage matrix

Inconsistency is a measure of how consistent a merge is with respect to its neighbors.

§Arguments

  • z - The linkage matrix from the linkage function
  • d - Number of levels to consider in calculating inconsistency (default: 2)

§Returns

  • Result<Array2<F>> - The inconsistency matrix