public class SnackTextfileDoubleDataSource extends TextReaderDoubleDataSource
reader
dataLength, inputSource
NOT_SPECIFIED
Constructor and Description |
---|
SnackTextfileDoubleDataSource(File file)
Read Double data from a Text file.
|
SnackTextfileDoubleDataSource(Reader reader)
Initialise this double data source with the reader from which a text representation of doubles (one per line) can be read.
|
Modifier and Type | Method and Description |
---|---|
int |
getData(double[] target,
int targetPos,
int length)
Try to get length doubles from this DoubleDataSource, and copy them into target, starting from targetPos.
|
hasMoreData
available, getAllData, getData, getData, getDataLength
public SnackTextfileDoubleDataSource(File file) throws FileNotFoundException
file
- fileFileNotFoundException
- FileNotFoundExceptionpublic SnackTextfileDoubleDataSource(Reader reader)
reader
- readerpublic int getData(double[] target, int targetPos, int length)
getData
in interface DoubleDataSource
getData
in class TextReaderDoubleDataSource
target
- the double array to write intotargetPos
- position in target where to start writinglength
- the amount of data requestedCopyright © 2000–2016 DFKI GmbH. All rights reserved.