comirva.mlearn.ghsom
Class WebCoocIndividualPrototypeFinder

java.lang.Object
  extended by comirva.mlearn.ghsom.WebCoocIndividualPrototypeFinder
All Implemented Interfaces:
GhSomIndividualPrototypeFinder, GhSomPrototypeFinder, Serializable

public class WebCoocIndividualPrototypeFinder
extends Object
implements GhSomIndividualPrototypeFinder

Tries to find a song prototype for a given map unit of a GHSOM. Uses the cooccurence information of the bands and the proximity of the bands to the map unit to calcutate the prototype.

See Also:
Serialized Form

Constructor Summary
WebCoocIndividualPrototypeFinder()
           
 
Method Summary
static HashMap<Integer,Double> calculateSongProximityValue(GHSOM currentSOM, int somUnitIndex)
           
static HashMap<Integer,Double> calculateSongProximityValue(Vector<Double> mean, HashMap<Integer,Vector<Double>> songData)
           
 int getIndexOfPrototype(GHSOM currentSOM, int somUnitIndex)
           
 String getPrototype(GHSOM currentSOM, int somUnitIndex)
           
 List<Integer> getRankOfAllSongs(GHSOM currentSOM, int somUnitIndex)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebCoocIndividualPrototypeFinder

public WebCoocIndividualPrototypeFinder()
Method Detail

getIndexOfPrototype

public int getIndexOfPrototype(GHSOM currentSOM,
                               int somUnitIndex)
Specified by:
getIndexOfPrototype in interface GhSomIndividualPrototypeFinder

getRankOfAllSongs

public List<Integer> getRankOfAllSongs(GHSOM currentSOM,
                                       int somUnitIndex)

getPrototype

public String getPrototype(GHSOM currentSOM,
                           int somUnitIndex)
Specified by:
getPrototype in interface GhSomPrototypeFinder

calculateSongProximityValue

public static HashMap<Integer,Double> calculateSongProximityValue(GHSOM currentSOM,
                                                                  int somUnitIndex)

calculateSongProximityValue

public static HashMap<Integer,Double> calculateSongProximityValue(Vector<Double> mean,
                                                                  HashMap<Integer,Vector<Double>> songData)