com.alibaba.simpleimage.analyze.search.tree
类 KMeansTreeNode

java.lang.Object
  继承者 com.alibaba.simpleimage.analyze.search.tree.KMeansTreeNode
所有已实现的接口:
Clusterable, Serializable

public class KMeansTreeNode
extends Object
implements Clusterable, Serializable

另请参见:
序列化表格

构造方法摘要
KMeansTreeNode(float[] center, List<Clusterable> items, int branchFactor, int maxHeight, int height, ClusterBuilder clusterBuilder)
           
 
方法摘要
 int addValue(Clusterable c)
          Adds a clusterable to the current vocab tree for word creation
 int getCurrentItemCount()
           
 int getHeight()
           
 int getId()
           
 float[] getLocation()
           
 int getNumSubItems()
           
 List<KMeansTreeNode> getSubNodes()
           
 boolean isLeafNode()
           
 void reset()
           
 String toString()
           
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

KMeansTreeNode

public KMeansTreeNode(float[] center,
                      List<Clusterable> items,
                      int branchFactor,
                      int maxHeight,
                      int height,
                      ClusterBuilder clusterBuilder)
方法详细信息

isLeafNode

public boolean isLeafNode()

getSubNodes

public List<KMeansTreeNode> getSubNodes()

getLocation

public float[] getLocation()
指定者:
接口 Clusterable 中的 getLocation

getNumSubItems

public int getNumSubItems()

getHeight

public int getHeight()

getId

public int getId()

addValue

public int addValue(Clusterable c)
Adds a clusterable to the current vocab tree for word creation


getCurrentItemCount

public int getCurrentItemCount()

reset

public void reset()

toString

public String toString()
覆盖:
Object 中的 toString


Copyright © 2012–2015 Alibaba Group. All rights reserved.