public class Segment extends Object implements Comparable<Segment>
UNCLUSTERED
) is stored.Modifier and Type | Field and Description |
---|---|
protected int[] |
clusterIds
The cluster numbers in each ring
|
protected DBIDs |
objIDs
IDs in segment, for object segments.
|
protected long |
pairsize
Size of cluster, in pairs.
|
static int |
UNCLUSTERED
Object is not clustered
|
Constructor and Description |
---|
Segment(int clusterings) |
Segment(int[] clone)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Segment sid) |
boolean |
equals(Object obj) |
int |
get(int idx)
Get cluster number for index idx.
|
DBIDs |
getDBIDs()
Get the DBIDs of objects contained in this segment.
|
long |
getPairCount() |
int |
getUnpairedClusteringIndex()
Returns the index of the first clustering having an unpaired cluster, or -1
no unpaired cluster exists.
|
int |
hashCode() |
boolean |
isNone()
Check if this segment contains the pairs that are never clustered by any of
the clusterings (all 0).
|
boolean |
isUnpaired()
Checks if the segment has a cluster with unpaired objects.
|
public static final int UNCLUSTERED
protected DBIDs objIDs
protected long pairsize
protected int[] clusterIds
public Segment(int clusterings)
public Segment(int[] clone)
clone
- Clone of cluster idspublic long getPairCount()
public int get(int idx)
idx
- Indexpublic boolean isUnpaired()
public boolean isNone()
public int getUnpairedClusteringIndex()
public DBIDs getDBIDs()
public int compareTo(Segment sid)
compareTo
in interface Comparable<Segment>
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.