weka.clusterers.assigners
Class RMNAssigner

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

public class RMNAssigner
extends MPCKMeansAssigner

See Also:
Serialized Form

Field Summary
protected  double m_constraintWeight
          scaling factor for constraint weights
 double m_epsilon
          small value to replace 0 in some places, to avoid numerical underflow
protected  double m_expScalingFactor
          scaling factor for exponent
protected  boolean m_singlePass
          Inference can be single-pass approximate or multi-pass approximate
 
Fields inherited from class weka.clusterers.assigners.MPCKMeansAssigner
m_clusterer
 
Constructor Summary
RMNAssigner()
           
RMNAssigner(MPCKMeans clusterer)
           
 
Method Summary
 int assign()
          The main method
 double getConstraintWeight()
           
 double getExpScalingFactor()
           
 java.lang.String[] getOptions()
          Gets the current option settings for the OptionHandler.
 boolean getSinglePass()
           
 boolean isSequential()
          This is a sequential assignment method
 java.util.Enumeration listOptions()
          Returns an enumeration of all the available options..
 void setConstraintWeight(double w)
          Get/Set m_constraintWeight
 void setExpScalingFactor(double s)
          Get/Set m_expScalingFactor
 void setOptions(java.lang.String[] options)
          Sets the OptionHandler's options using the given list.
 void setSinglePass(boolean b)
          Get/Set m_singlePass
 
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_singlePass

protected boolean m_singlePass
Inference can be single-pass approximate or multi-pass approximate


m_expScalingFactor

protected double m_expScalingFactor
scaling factor for exponent


m_constraintWeight

protected double m_constraintWeight
scaling factor for constraint weights


m_epsilon

public double m_epsilon
small value to replace 0 in some places, to avoid numerical underflow

Constructor Detail

RMNAssigner

public RMNAssigner()

RMNAssigner

public RMNAssigner(MPCKMeans clusterer)
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

setSinglePass

public void setSinglePass(boolean b)
Get/Set m_singlePass

Parameters:
b - truth value

getSinglePass

public boolean getSinglePass()

setExpScalingFactor

public void setExpScalingFactor(double s)
Get/Set m_expScalingFactor

Parameters:
s - scaling factor

getExpScalingFactor

public double getExpScalingFactor()

setConstraintWeight

public void setConstraintWeight(double w)
Get/Set m_constraintWeight

Parameters:
w - weight

getConstraintWeight

public double getConstraintWeight()

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