comirva.mlearn.ghsom
Class CoOccurrencePrototypeFinder
java.lang.Object
comirva.mlearn.ghsom.CoOccurrencePrototypeFinder
- All Implemented Interfaces:
- Serializable
public class CoOccurrencePrototypeFinder
- extends Object
- implements Serializable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CoOccurrencePrototypeFinder
public CoOccurrencePrototypeFinder(List<String> labels,
DataMatrix coocData)
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)