20namespace jsa::cicuetea {
45 Slicer(Eigen::Index newBlockSize, Eigen::Index newHopSize);
68 Eigen::Map<const Eigen::ArrayXd>
getBlock();
99 Eigen::ArrayXd buffer;
100 Eigen::Index bufferSize;
101 Eigen::Index blockSize;
102 Eigen::Index overlapSize;
103 Eigen::Index hopSize;
Eigen::Index getBlockSize() const
Gets the current block size.
Definition Slicer.hpp:75
bool hasBlock()
Checks if a complete block is available for retrieval.
Definition Slicer.cpp:38
Eigen::Index getBufferSize() const
Gets the size of the internal buffer.
Definition Slicer.hpp:96
void pushSample(double sample)
Pushes a single sample into the internal buffer.
Definition Slicer.cpp:30
Eigen::Index getOverlapSize() const
Gets the current overlap size.
Definition Slicer.hpp:82
Slicer(Eigen::Index newBlockSize, Eigen::Index newHopSize)
Slicer constructor that sets the block size and hop size for slicing.
Definition Slicer.cpp:18
Eigen::Map< const Eigen::ArrayXd > getBlock()
Retrieves the next available block as a read-only Eigen::ArrayXd.
Definition Slicer.cpp:44
Eigen::Index getHopSize() const
Gets the current hop size.
Definition Slicer.hpp:89