comirva.audio.feature
Class AudioFeature

java.lang.Object
  extended by comirva.audio.feature.Attribute
      extended by comirva.audio.feature.AudioFeature
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
FluctuationPattern, FluctuationPatternCent, MandelEllis, SpectralPatternCent, TimbreDistribution

public abstract class AudioFeature
extends Attribute
implements Serializable

An audio feature is a special attribute designed to describe characteristics of audiostreams. A audio feature is the result of a audio feature extraction process.

Beside describing the characteristic of audio streams, audio features also support comparing two audio streams. So based on the supported characterization a metric has to be implemented, which allows to compute the distance (similarity/dissimilarity) of two audio streams.

See Also:
AudioFeatureExtractor, AudioFeatureExtractionThread, Serialized Form

Constructor Summary
AudioFeature()
           
 
Method Summary
abstract  double[] getAsArray()
          Returns a vector representation of each feature.
abstract  double getDistance(AudioFeature f)
          Measures the similarity/dissimilarity of two audio streams characterized by two audio features.
 
Methods inherited from class comirva.audio.feature.Attribute
getClassName, getType, readAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AudioFeature

public AudioFeature()
Method Detail

getDistance

public abstract double getDistance(AudioFeature f)
Measures the similarity/dissimilarity of two audio streams characterized by two audio features.

Parameters:
f - AudioFeature another audio feature of the same type
Returns:
double the distance between the two audio streams

getAsArray

public abstract double[] getAsArray()
Returns a vector representation of each feature.

Returns: