EEP Plot files - Grouhcraft/EEGAnalysis GitHub Wiki
EEP Plot files (_.eep_ extension) are _xml_ files.
The XSD can be found here
Basicaly, the root node <plot> contains the nodes <metas> and <code>.
- <metas> contain the name of the plot, along with the description of the axis
- <code> may contain user settings/variables and always contain a <node> where one should write the javascript code of the plot.
<? xml version="1.0" encoding="UTF-8"?>
<plot xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="plot.xsd">
<metas>
<name>Second test</name>
<axis type="x" unit="s">Temps</axis>
<axis type="y" unit="">Amplitude Log10</axis>
</metas>
<code>
<script type="text/javascript" main="tameme">
<![CDATA[
var shift = 39;
function tameme(data) {
for(var i=0; i<data[1].length; i++) {
data[1][i] = log10(data[1][i]);
}
return data;
}
function log10(val) {
return Math.log(val) / Math.log(10);
}
]]>
</script>
</code>
</plot>
The main function is set by the main attribute of the <script> tag.
This function is then called with a data object as parameter.
the data object is a 2-d number array representing the raw values of the signal, where index 0 is X, index 1 is Y, and index 3 is Z if needed.