|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.nengo.io.DelimitedFileExporter
public class DelimitedFileExporter
Exports TimeSeries, SpikePattern, and float[][] data to delimited text files.
Constructor Summary | |
---|---|
DelimitedFileExporter()
Uses default column delimiter ", " and row delimiter "\r\n". |
|
DelimitedFileExporter(java.lang.String columnDelim,
java.lang.String rowDelim)
|
Method Summary | |
---|---|
void |
export(float[][] matrix,
java.io.File file)
Exports a matrix with rows and columns delimited as specified in the constructor. |
void |
export(SpikePattern pattern,
java.io.File file)
Exports a SpikePattern as a matrix with spikes times of each neuron in a different row. |
void |
export(TimeSeries series,
java.io.File file)
Exports a TimeSeries with times in the first column and data from each dimension in subsequent columns. |
void |
export(TimeSeries series,
java.io.File file,
float tau)
Exports a TimeSeries as a matrix with times in the first column and data from each dimension in subsequent rows. |
float[][] |
importAsMatrix(java.io.File file)
Imports a delimited file as a matrix. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DelimitedFileExporter()
public DelimitedFileExporter(java.lang.String columnDelim, java.lang.String rowDelim)
columnDelim
- String used to delimit items within a matrix rowrowDelim
- String used to delimit rows of a matrixMethod Detail |
---|
public void export(TimeSeries series, java.io.File file) throws java.io.IOException
series
- TimeSeries to exportfile
- File to which to export the TimeSeries
java.io.IOException
public void export(TimeSeries series, java.io.File file, float tau) throws java.io.IOException
series
- TimeSeries to exportfile
- File to which to export the TimeSeriestau
- Time constant with which to filter data
java.io.IOException
public void export(SpikePattern pattern, java.io.File file) throws java.io.IOException
pattern
- SpikePattern to exportfile
- File to which to export the SpikePattern
java.io.IOException
public void export(float[][] matrix, java.io.File file) throws java.io.IOException
matrix
- The matrix to exportfile
- File to which to export the matrix
java.io.IOException
public float[][] importAsMatrix(java.io.File file) throws java.io.IOException
file
- File from which to load matrix
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |