org.apache.mahout.clustering
Class ClusterObservations

java.lang.Object
  extended by org.apache.mahout.clustering.ClusterObservations
All Implemented Interfaces:
org.apache.hadoop.io.Writable

public class ClusterObservations
extends Object
implements org.apache.hadoop.io.Writable


Constructor Summary
ClusterObservations()
           
ClusterObservations(double s0, Vector s1, Vector s2)
           
ClusterObservations(int combinerState, double s0, Vector s1, Vector s2)
           
 
Method Summary
 int getCombinerState()
           
 double getS0()
           
 Vector getS1()
           
 Vector getS2()
           
 ClusterObservations incrementCombinerState()
           
 void readFields(DataInput in)
           
 String toString()
           
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClusterObservations

public ClusterObservations(double s0,
                           Vector s1,
                           Vector s2)

ClusterObservations

public ClusterObservations(int combinerState,
                           double s0,
                           Vector s1,
                           Vector s2)

ClusterObservations

public ClusterObservations()
Method Detail

readFields

public void readFields(DataInput in)
                throws IOException
Specified by:
readFields in interface org.apache.hadoop.io.Writable
Throws:
IOException

write

public void write(DataOutput out)
           throws IOException
Specified by:
write in interface org.apache.hadoop.io.Writable
Throws:
IOException

getCombinerState

public int getCombinerState()
Returns:
the combinerState

getS0

public double getS0()
Returns:
the s0

getS1

public Vector getS1()
Returns:
the s1

getS2

public Vector getS2()
Returns:
the s2

toString

public String toString()
Overrides:
toString in class Object

incrementCombinerState

public ClusterObservations incrementCombinerState()


Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.