|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.nengo.io.MatlabExporter
public class MatlabExporter
A tool for exporting data to Matlab .mat files. Use like this:
MatlabExport me = new MatlabExport();
me.add("series1", series1);
...
me.add("series1", series1);
me.write(new File("c:\\foo.mat"));
| Constructor Summary | |
|---|---|
MatlabExporter()
|
|
| Method Summary | |
|---|---|
void |
add(java.lang.String name,
float[][] data)
|
void |
add(java.lang.String name,
SpikePattern pattern)
|
void |
add(java.lang.String name,
TimeSeries data)
|
void |
add(java.lang.String name,
TimeSeries data,
float tau)
Filters TimeSeries data with given time constant (this is usually a good idea for spike output, which is a sum of impulses). |
void |
removeAll()
Clears all variables |
void |
write(java.io.File destination)
Writes to given destination the data that have been added to this exporter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MatlabExporter()
| Method Detail |
|---|
public void add(java.lang.String name,
TimeSeries data)
name - Matlab variable namedata - Data to be stored in Matlab variable
public void add(java.lang.String name,
TimeSeries data,
float tau)
name - Matlab variable namedata - Data to be stored in Matlab variabletau - Time constant of filter to apply to data
public void add(java.lang.String name,
SpikePattern pattern)
name - Matlab variable namepattern - Spike times for a group of neurons
public void add(java.lang.String name,
float[][] data)
name - Matlab variable namedata - A matrixpublic void removeAll()
public void write(java.io.File destination)
throws java.io.IOException
destination - File to which data are to be written (should have extension .mat)
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||