comirva.audio.feature
Class AudioFeature
java.lang.Object
comirva.audio.feature.Attribute
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AudioFeature
public AudioFeature()
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: