isDuplicated#

swordfish.function.isDuplicated()#

Return a vector or a tuple of vectors of Boolean values. If an element has no duplicate values, it returns 0.

  • If keep=FIRST, the first duplicate value returns 0 while all other duplicate values return 1.

  • If keep=LAST, the last duplicate value returns 0 while all other duplicate values return 1.

  • If keep=NONE, all duplicate values return 1.

Parameters:
  • X (Constant) – A vector or a tuple of vectors of same length.

  • keep (Constant) – Can take the value of FIRST, LAST or NONE. It indicates how the system processes duplicate values. The default value is FIRST.