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)
           
 
方法摘要
 void addItem(Clusterable item)
           
 float[] getClusterMean()
          Get the current mean value of the cluster's items
 float getClusterMeanDist()
           
 int getId()
           
 List<Clusterable> getItems()
           
 float[] getLocation()
          Get the original location of the cluster
static float[] getMeanValue(List<Clusterable> items)
           
static void main(String[] args)
           
 void removeItem(Clusterable item)
           
 void setLocation(float[] location)
           
 String toString()
           
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

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.