org.apache.mahout.math.hadoop.similarity.vector
Class DistributedPearsonCorrelationVectorSimilarity

java.lang.Object
  extended by org.apache.mahout.math.hadoop.similarity.vector.AbstractDistributedVectorSimilarity
      extended by org.apache.mahout.math.hadoop.similarity.vector.DistributedPearsonCorrelationVectorSimilarity
All Implemented Interfaces:
DistributedVectorSimilarity

public class DistributedPearsonCorrelationVectorSimilarity
extends AbstractDistributedVectorSimilarity

distributed implementation of the pearson correlation


Constructor Summary
DistributedPearsonCorrelationVectorSimilarity()
           
 
Method Summary
protected  double doComputeResult(int rowA, int rowB, java.lang.Iterable<Cooccurrence> cooccurrences, double weightOfVectorA, double weightOfVectorB, int numberOfColumns)
          do the actual similarity computation
 
Methods inherited from class org.apache.mahout.math.hadoop.similarity.vector.AbstractDistributedVectorSimilarity
countElements, countElements, similarity, weight
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DistributedPearsonCorrelationVectorSimilarity

public DistributedPearsonCorrelationVectorSimilarity()
Method Detail

doComputeResult

protected double doComputeResult(int rowA,
                                 int rowB,
                                 java.lang.Iterable<Cooccurrence> cooccurrences,
                                 double weightOfVectorA,
                                 double weightOfVectorB,
                                 int numberOfColumns)
Description copied from class: AbstractDistributedVectorSimilarity
do the actual similarity computation

Specified by:
doComputeResult in class AbstractDistributedVectorSimilarity
See Also:
DistributedVectorSimilarity.similarity(int, int, Iterable, double, double, int)


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