comirva.mlearn.ghsom
Class CoOccurrencePrototypeFinder

java.lang.Object
  extended by comirva.mlearn.ghsom.CoOccurrencePrototypeFinder
All Implemented Interfaces:
Serializable

public class CoOccurrencePrototypeFinder
extends Object
implements Serializable

See Also:
Serialized Form

Constructor Summary
CoOccurrencePrototypeFinder(List<String> labels, DataMatrix coocData)
           
 
Method Summary
 HashMap<String,Double> calcutateRankingsOf(Collection<String> selections)
          returns a map including all values of the rankingFunction
 String getPrototypeOf(Collection<String> selections)
          calculates the prototype on the basis of a cooccurence matrix
 String getPrototypeOf(HashMap<String,Integer> selectionsWithNumberOfOccs)
          calculates the prototype on the basis of a cooccurence matrix accounts for the number of occurences of the selections
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoOccurrencePrototypeFinder

public CoOccurrencePrototypeFinder(List<String> labels,
                                   DataMatrix coocData)
Method Detail

getPrototypeOf

public String getPrototypeOf(Collection<String> selections)
calculates the prototype on the basis of a cooccurence matrix


getPrototypeOf

public String getPrototypeOf(HashMap<String,Integer> selectionsWithNumberOfOccs)
calculates the prototype on the basis of a cooccurence matrix accounts for the number of occurences of the selections


calcutateRankingsOf

public HashMap<String,Double> calcutateRankingsOf(Collection<String> selections)
returns a map including all values of the rankingFunction


main

public static void main(String[] args)