Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
HowToKB/src/kb/howtokb/clustering/ITopDownClustering.java
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
28 lines (22 sloc)
772 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package kb.howtokb.clustering; | |
import java.util.List; | |
public interface ITopDownClustering<ClusterType, ClusterMemberType> { | |
/** | |
* Can we split a cluster into two. | |
* @param c | |
* @return | |
*/ | |
public boolean canSplitFrom(ClusterType c1, ClusterType c2, | |
ISimilarity<ClusterMemberType> simFunc, double simThreshold); | |
/** | |
* Supports k-way splits. This can be achieved via graph cut algorithms, | |
* or the simplest method being k-means. Question is how to compute the | |
* median in k-means over activity frames. | |
* @param c | |
* @return | |
*/ | |
abstract public List<ClusterType> splitACluster(ClusterType c, int k) throws Exception; | |
public static interface IStopping<ClusterType> { | |
public boolean split(ClusterType parent, List<ClusterType> children); | |
} | |
} |