Flatness of the CDF curve

FCC(consensus_mat, diff = 0.1)

Arguments

consensus_mat

A consensus matrix.

diff

Difference of F(b) - F(a).

Details

For a in [0, 0.5] and for b in [0.5, 1], the flatness measures the flatness of the CDF curve of the consensus matrix. It is calculated as the maximum width that fits F(b) - F(a) <= diff

Value

A numeric value.

Examples

data(golub_cola)
FCC(get_consensus(golub_cola[1, 1], k = 2))
#> [1] 0.5353535
FCC(get_consensus(golub_cola[1, 1], k = 3))
#> [1] 0.2727273
FCC(get_consensus(golub_cola[1, 1], k = 4))
#> [1] 0.2727273
FCC(get_consensus(golub_cola[1, 1], k = 5))
#> [1] 0.1919192
FCC(get_consensus(golub_cola[1, 1], k = 6))
#> [1] 0.2373737