public class ClusterInfo
extends IntWritable
Constructor and Description |
---|
ClusterInfo()
Creates a new instance
|
ClusterInfo(ClusterInfo cluster)
Creates a new instanced with the same information than another ClusterInfo
|
Modifier and Type | Method and Description |
---|---|
double |
getCriterionFunctionValue()
Gets the criterion function value generated the last time the cluster was updated
|
int |
getId()
Gets the cluster id
|
long |
getMemberCount()
Gets the number of members contained by the cluster
|
double[] |
getOrdinates()
Gets the ordinates of the cluster center point
|
JGeometry |
getShape() |
void |
readFields(java.io.DataInput in) |
void |
setCluster(ClusterInfo cluster)
Copies the values from another ClusterInfo
|
void |
setCriterionFunctionValue(double criterionFunctionValue)
Sets the criterion function value generated the last time the cluster was updated
|
void |
setId(int id)
Sets the cluster id
|
void |
setMemberCount(long memberCount)
Sets the number of members contained by the cluster
|
void |
setOrdinates(double[] ordinates)
Sets the ordinates of the cluster center point
|
void |
setShape(JGeometry shape) |
void |
write(java.io.DataOutput out) |
public ClusterInfo()
public ClusterInfo(ClusterInfo cluster)
cluster
- a ClusterInfo which values will be copiedpublic double getCriterionFunctionValue()
public int getId()
public long getMemberCount()
public double[] getOrdinates()
public JGeometry getShape()
public void readFields(java.io.DataInput in) throws java.io.IOException
java.io.IOException
public void setCluster(ClusterInfo cluster)
cluster
- a ClusterInfo instancepublic void setCriterionFunctionValue(double criterionFunctionValue)
criterionFunctionValue
- a criterion function valuepublic void setId(int id)
id
- a cluster idpublic void setMemberCount(long memberCount)
memberCount
- the cluster member countpublic void setOrdinates(double[] ordinates)
ordinates
- a point ordinates arraypublic void setShape(JGeometry shape)
public void write(java.io.DataOutput out) throws java.io.IOException
java.io.IOException
Copyright © 2017 Oracle and/or its affiliates. All Rights Reserved.