javatools.datatypes
Class FastFrequencyVector

java.lang.Object
  extended by javatools.datatypes.FastFrequencyVector
Type Parameters:
K -

public class FastFrequencyVector
extends java.lang.Object

This class is part of the Java Tools (see http://mpii.de/yago-naga/javatools). It is licensed under the Creative Commons Attribution License (see http://creativecommons.org/licenses/by/3.0) by the YAGO-NAGA team (see http://mpii.de/yago-naga). This class FrequencyVector methods with DoubleHashMap and IntHashMap

Author:
Fabian M. Suchanek

Constructor Summary
FastFrequencyVector()
           
 
Method Summary
static
<K> double
fuzzyPrecision(DoubleHashMap<K> me, DoubleHashMap<K> other)
          Computes the fuzzy precision of this vector wrt the other vector
static
<K> double
fuzzyPrecision(IntHashMap<K> me, IntHashMap<K> other)
          Computes the fuzzy precision of this vector wrt the other vector
static
<K> double
fuzzyRecall(DoubleHashMap<K> me, DoubleHashMap<K> other)
          Computes the fuzzy recall of this vector wrt the other vector
static
<K> double
fuzzyRecall(IntHashMap<K> me, IntHashMap<K> other)
          Computes the fuzzy recall of this vector wrt the other vector
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FastFrequencyVector

public FastFrequencyVector()
Method Detail

fuzzyPrecision

public static <K> double fuzzyPrecision(DoubleHashMap<K> me,
                                        DoubleHashMap<K> other)
Computes the fuzzy precision of this vector wrt the other vector


fuzzyPrecision

public static <K> double fuzzyPrecision(IntHashMap<K> me,
                                        IntHashMap<K> other)
Computes the fuzzy precision of this vector wrt the other vector


fuzzyRecall

public static <K> double fuzzyRecall(DoubleHashMap<K> me,
                                     DoubleHashMap<K> other)
Computes the fuzzy recall of this vector wrt the other vector


fuzzyRecall

public static <K> double fuzzyRecall(IntHashMap<K> me,
                                     IntHashMap<K> other)
Computes the fuzzy recall of this vector wrt the other vector


main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception