public class SoftAssignment extends Object implements Assignment
| Constructor and Description |
|---|
SoftAssignment(Collection<Integer> clusterIds)
Creates a new
SoftAssignment where the data point is assigned to
the specified clusters. |
SoftAssignment(int[] assignments)
Constructs a new
SoftAssignment based on the given array of
assignments. |
SoftAssignment(Integer... clusterIds)
Creates a new
SoftAssignment where the data point is assigned to
the specified clusters. |
| Modifier and Type | Method and Description |
|---|---|
int[] |
assignments()
Returns the cluster id's that a specific data point was assigned to.
|
int |
length()
Returns the number of assignments given for this data point.
|
String |
toString() |
public SoftAssignment(int[] assignments)
SoftAssignment based on the given array of
assignments.public SoftAssignment(Collection<Integer> clusterIds)
SoftAssignment where the data point is assigned to
the specified clusters.public SoftAssignment(Integer... clusterIds)
SoftAssignment where the data point is assigned to
the specified clusters.public int[] assignments()
assignments in interface Assignmentpublic int length()
length in interface AssignmentCopyright © 2012. All Rights Reserved.