comirva.mlearn.ghsom
Class WebCoocIndividualPrototypeFinder
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WebCoocIndividualPrototypeFinder
public WebCoocIndividualPrototypeFinder()
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)