org.apache.mahout.math.hadoop.similarity.cooccurrence.measures
Class CityBlockSimilarity

java.lang.Object
  extended by org.apache.mahout.math.hadoop.similarity.cooccurrence.measures.CountbasedMeasure
      extended by org.apache.mahout.math.hadoop.similarity.cooccurrence.measures.CityBlockSimilarity
All Implemented Interfaces:
VectorSimilarityMeasure

public class CityBlockSimilarity
extends CountbasedMeasure


Field Summary
 
Fields inherited from interface org.apache.mahout.math.hadoop.similarity.cooccurrence.measures.VectorSimilarityMeasure
NO_NORM
 
Constructor Summary
CityBlockSimilarity()
           
 
Method Summary
 double similarity(double dots, double normA, double normB, int numberOfColumns)
           
 
Methods inherited from class org.apache.mahout.math.hadoop.similarity.cooccurrence.measures.CountbasedMeasure
aggregate, consider, norm, normalize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CityBlockSimilarity

public CityBlockSimilarity()
Method Detail

similarity

public double similarity(double dots,
                         double normA,
                         double normB,
                         int numberOfColumns)


Copyright © 2008–2014 The Apache Software Foundation. All rights reserved.