calour.filtering.unique_cut

calour.filtering.unique_cut(x, unique=0.05)[source]

the percentage of distinct values out of the length of x.

Examples

>>> unique_cut([0, 0], 0.49)
True
>>> unique_cut([0, 0], 0.51)
False
>>> unique_cut([0, 1], 1.01)
False