public class FIRFilter.FIROutput extends BlockwiseDoubleDataSource
Modifier and Type | Field and Description |
---|---|
protected FrameProvider |
frameProvider |
protected int |
nTailCutoff |
blockSize
buf, dataProcessor, DEFAULT_BUFFERSIZE, readPos, writePos
dataLength, inputSource
NOT_SPECIFIED
Constructor and Description |
---|
FIRFilter.FIROutput(DoubleDataSource inputSource) |
Modifier and Type | Method and Description |
---|---|
int |
getData(double[] target,
int targetPos,
int length)
This implementation of getData() will cut off a tail corresponding to half of the FIR filter.
|
boolean |
hasMoreData()
Whether or not any more data can be read from this data source.
|
protected int |
readBlock(double[] target,
int targetPos)
Try to get a block of getBlockSize() doubles from this DoubleDataSource, and copy them into target, starting from
targetPos.
|
getBlockSize, prepareBlock, readIntoBuffer
available, bufferSpaceLeft, compact, currentlyInBuffer, increaseBufferSize
getAllData, getData, getData, getDataLength
protected FrameProvider frameProvider
protected int nTailCutoff
public FIRFilter.FIROutput(DoubleDataSource inputSource)
public boolean hasMoreData()
BufferedDoubleDataSource
hasMoreData
in interface DoubleDataSource
hasMoreData
in class BufferedDoubleDataSource
public int getData(double[] target, int targetPos, int length)
getData
in interface DoubleDataSource
getData
in class BufferedDoubleDataSource
target
- the double array to write intotargetPos
- position in target where to start writinglength
- the amount of data requestedprotected int readBlock(double[] target, int targetPos)
readBlock
in class BlockwiseDoubleDataSource
target
- the double array to write intotargetPos
- position in target where to start writingCopyright © 2000–2016 DFKI GmbH. All rights reserved.