permutation_further_than

emlib.combinatorics.permutation_further_than(xs, min_distance, rand=True)[source]

Return a permutation of xs with a min. distance to it

min_distance is an indication of entropy, where if min_distance == 0 then the seq should be xs and if min_distance == 1 then the elements are ordered as far away from the originals as poss.

Parameters:
  • xs (Sequence[TypeVar(T)]) – the seq. to permute

  • min_distance (float) – a min. distance (a value between 0 and 1)

  • rand

    ???

Return type:

list[TypeVar(T)]

Returns:

the permuted seq.