weka.clusterers.assigners
Class SortedAssigner

java.lang.Object
  extended byweka.clusterers.assigners.MPCKMeansAssigner
      extended byweka.clusterers.assigners.SortedAssigner
All Implemented Interfaces:
java.lang.Cloneable, OptionHandler, java.io.Serializable

public class SortedAssigner
extends MPCKMeansAssigner

See Also:
Serialized Form

Field Summary
protected  int m_MaxTimesPointsMoved
          Number of times points are moved in assignment step till stabilization
protected  boolean m_MovePointsTillAssignmentStabilizes
          Move points in assignment step till stabilization?
 
Fields inherited from class weka.clusterers.assigners.MPCKMeansAssigner
m_clusterer
 
Constructor Summary
SortedAssigner()
           
 
Method Summary
 int assign()
          The main method
 int getMaxTimesPointsMoved()
          Get/set the number of times points can be moved
 boolean getMovePointsTillAssignmentStabilizes()
           
 java.lang.String[] getOptions()
          Gets the current option settings for the OptionHandler.
 boolean isSequential()
          This is a sequential assignment method
 java.util.Enumeration listOptions()
          Returns an enumeration of all the available options..
 void setMaxTimesPointsMoved(int v)
           
 void setMovePointsTillAssignmentStabilizes(boolean b)
          Get/Set m_MovePointsTillAssignmentStabilizes
 void setOptions(java.lang.String[] options)
          Sets the OptionHandler's options using the given list.
 
Methods inherited from class weka.clusterers.assigners.MPCKMeansAssigner
setClusterer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_MovePointsTillAssignmentStabilizes

protected boolean m_MovePointsTillAssignmentStabilizes
Move points in assignment step till stabilization?


m_MaxTimesPointsMoved

protected int m_MaxTimesPointsMoved
Number of times points are moved in assignment step till stabilization

Constructor Detail

SortedAssigner

public SortedAssigner()
Method Detail

isSequential

public boolean isSequential()
This is a sequential assignment method

Specified by:
isSequential in class MPCKMeansAssigner

assign

public int assign()
           throws java.lang.Exception
The main method

Specified by:
assign in class MPCKMeansAssigner
Returns:
the number of points that changed assignment
Throws:
java.lang.Exception

setMovePointsTillAssignmentStabilizes

public void setMovePointsTillAssignmentStabilizes(boolean b)
Get/Set m_MovePointsTillAssignmentStabilizes

Parameters:
b - truth value

getMovePointsTillAssignmentStabilizes

public boolean getMovePointsTillAssignmentStabilizes()

getMaxTimesPointsMoved

public int getMaxTimesPointsMoved()
Get/set the number of times points can be moved


setMaxTimesPointsMoved

public void setMaxTimesPointsMoved(int v)

setOptions

public void setOptions(java.lang.String[] options)
                throws java.lang.Exception
Description copied from interface: OptionHandler
Sets the OptionHandler's options using the given list. All options will be set (or reset) during this call (i.e. incremental setting of options is not possible).

Parameters:
options - the list of options as an array of strings
Throws:
java.lang.Exception - if an option is not supported

listOptions

public java.util.Enumeration listOptions()
Description copied from interface: OptionHandler
Returns an enumeration of all the available options..

Returns:
an enumeration of all available options.

getOptions

public java.lang.String[] getOptions()
Description copied from interface: OptionHandler
Gets the current option settings for the OptionHandler.

Returns:
the list of current option settings as an array of strings