MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / reset

Method reset

app/src/DSP.h:799–814  ·  view source on GitHub ↗

* @brief Prepare the workspace for a render pass with C columns. */

Source from the content-addressed store, hash-verified

797 * @brief Prepare the workspace for a render pass with C columns.
798 */
799 void reset(std::size_t C)
800 {
801 if (cnt.size() != C) {
802 cnt.resize(C);
803 minY.resize(C);
804 maxY.resize(C);
805 minI.resize(C);
806 maxI.resize(C);
807 lastI.resize(C);
808 firstI.resize(C);
809 }
810
811 std::fill(cnt.begin(), cnt.end(), 0u);
812 std::fill(minY.begin(), minY.end(), std::numeric_limits<ssfp_t>::infinity());
813 std::fill(maxY.begin(), maxY.end(), -std::numeric_limits<ssfp_t>::infinity());
814 }
815};
816
817//--------------------------------------------------------------------------------------------------

Callers 3

downsampleMonotonicFunction · 0.45
downsampleTimeWindowFunction · 0.45
downsampleWindowAbsoluteFunction · 0.45

Calls 3

beginMethod · 0.80
sizeMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected