|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object comirva.audio.feature.Attribute comirva.audio.feature.AudioFeature comirva.audio.feature.MandelEllis
public class MandelEllis
Field Summary | |
---|---|
protected Matrix |
covarMatrix
|
protected Matrix |
covarMatrixInv
the inverted covarMatrix, stored for computational efficiency |
protected Matrix |
mean
a row vector |
Constructor Summary | |
---|---|
protected |
MandelEllis()
|
|
MandelEllis(Matrix covarMatrix,
Matrix mean)
"Gaussian Mixture Model for Mandel / Ellis algorithm" This class holds the features needed for the Mandel Ellis algorithm: One full covariance matrix, and the mean of all MFCCS. |
Method Summary | |
---|---|
double[] |
getAsArray()
Returns the fluctuation pattern matrix as a double array. |
double |
getDistance(AudioFeature f)
Measures the similarity/dissimilarity of two audio streams characterized by two audio features. |
void |
readXML(XMLStreamReader parser)
Reads the xml representation of an object form the xml input stream. |
void |
writeXML(XMLStreamWriter writer)
Writes the xml representation of this object to the xml output stream. |
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 |
Field Detail |
---|
protected Matrix covarMatrix
protected Matrix covarMatrixInv
protected Matrix mean
Constructor Detail |
---|
public MandelEllis(Matrix covarMatrix, Matrix mean)
protected MandelEllis()
Method Detail |
---|
public double[] getAsArray()
getAsArray
in class AudioFeature
public double getDistance(AudioFeature f)
AudioFeature
getDistance
in class AudioFeature
f
- AudioFeature another audio feature of the same type
public void writeXML(XMLStreamWriter writer) throws IOException, XMLStreamException
writeXML()
method
results in one xml element in the output stream.
writeXML
in interface XMLSerializable
writer
- XMLStreamWriter the xml output stream
IOException
- raised, if there are any io troubles
XMLStreamException
- raised, if there are any parsing errorspublic void readXML(XMLStreamReader parser) throws IOException, XMLStreamException
readXML()
starts parsing by
checking the start tag of this object and finishes parsing by checking the
end tag. The caller has to ensure, that at method entry the current token
is the start tag. After the method call it's the callers responsibility to
move from the end tag to the next token.
readXML
in interface XMLSerializable
parser
- XMLStreamReader the xml input stream
IOException
- raised, if there are any io troubles
XMLStreamException
- raised, if there are any parsing errors
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |