com.alibaba.simpleimage.analyze.search.cluster.impl
类 Cluster
java.lang.Object
com.alibaba.simpleimage.analyze.search.cluster.impl.Cluster
- 所有已实现的接口:
- Clusterable
public class Cluster
- extends Object
- implements Clusterable
类Cluster.java的实现描述:TODO 类实现描述
- 作者:
- axman 2013-7-24 上午10:44:29
|
构造方法摘要 |
Cluster(float[] location,
int id)
|
Cluster
public Cluster(float[] location,
int id)
getClusterMean
public float[] getClusterMean()
- Get the current mean value of the cluster's items
- 返回:
getClusterMeanDist
public float getClusterMeanDist()
removeItem
public void removeItem(Clusterable item)
addItem
public void addItem(Clusterable item)
getItems
public List<Clusterable> getItems()
getLocation
public float[] getLocation()
- Get the original location of the cluster
- 指定者:
- 接口
Clusterable 中的 getLocation
setLocation
public void setLocation(float[] location)
getMeanValue
public static float[] getMeanValue(List<Clusterable> items)
toString
public String toString()
- 覆盖:
- 类
Object 中的 toString
getId
public int getId()
main
public static void main(String[] args)
Copyright © 2012–2015 Alibaba Group. All rights reserved.