org.apache.mahout.math.hadoop.similarity
Class Cooccurrence
java.lang.Object
org.apache.mahout.math.hadoop.similarity.Cooccurrence
- All Implemented Interfaces:
- org.apache.hadoop.io.Writable
public class Cooccurrence
- extends Object
- implements org.apache.hadoop.io.Writable
a pair of entries in the same column of a row vector where each of the entries' values is != NaN
Cooccurrence
public Cooccurrence()
Cooccurrence
public Cooccurrence(int column,
double valueA,
double valueB)
set
public void set(int column,
double valueA,
double valueB)
getColumn
public int getColumn()
getValueA
public double getValueA()
getValueB
public double getValueB()
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
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object other)
- Overrides:
equals
in class Object
Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.