public class LabelSet extends Object implements Comparator, Serializable
| Modifier and Type | Field and Description |
|---|---|
int[] |
indices |
| Constructor and Description |
|---|
LabelSet() |
LabelSet(int[] indices)
A new LabelSet, given a list of SORTED indices.
|
LabelSet(int[] indices,
boolean sort)
A new LabelSet, indicating sort=true if indices they need to be sorted (i.e., are NOT sorted).
|
LabelSet(List<Integer> list) |
LabelSet(Set<Integer> set) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Object o1,
Object o2) |
boolean |
contains(int j) |
boolean |
contains(int[] js) |
LabelSet |
deep_copy() |
int |
distance(LabelSet o) |
boolean |
equals(Object o) |
int |
hashCode() |
static int[] |
minus(int[] y1,
int[] y2)
Minus aka Set Difference, e.g., [3,4,7,9] \ [3,7] = [4,9].
|
void |
minus(LabelSet l2) |
static int |
subset(int[] y1,
int[] y2)
Subset - returns > 0 if y1 \subsetof y2
|
int |
subsetof(LabelSet y) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic LabelSet()
public LabelSet(int[] indices)
public LabelSet(int[] indices,
boolean sort)
public final boolean contains(int j)
public final boolean contains(int[] js)
public boolean equals(Object o)
equals in interface Comparatorequals in class Objectpublic int compare(Object o1, Object o2)
compare in interface Comparatorpublic final int subsetof(LabelSet y)
public static final int subset(int[] y1,
int[] y2)
public void minus(LabelSet l2)
public static int[] minus(int[] y1,
int[] y2)
public int distance(LabelSet o)
public LabelSet deep_copy()
Copyright © 2017. All Rights Reserved.