|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcs195z.support.CAbstractAlgorithm<T,E>
cs195z.cluster.CStudentKMeans<T,E>
public class CStudentKMeans<T extends Number,E extends Serializable>
Comments
Constructor Summary | |
---|---|
CStudentKMeans(List<CElement<T,E>> items,
int k)
Please do not modify this constructor. |
Method Summary | |
---|---|
Iterable<Iterable<CElement<T,E>>> |
getResult()
The standard issue method is probably ok, assuming you assign an Iterable |
void |
init()
Does all of the work of the algorithm before the main loop. |
boolean |
step()
Performs the main iteration of the algorithm. |
Methods inherited from class cs195z.support.CAbstractAlgorithm |
---|
clickStepped, complete, run |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CStudentKMeans(List<CElement<T,E>> items, int k)
items
- - set of elements to clusterk
- - parameter k from algorithmMethod Detail |
---|
public void init()
CAlgorithm
public boolean step()
CAlgorithm
public Iterable<Iterable<CElement<T,E>>> getResult()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |