SWMMVis  6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
binsampler.h
Go to the documentation of this file.
1
25#ifndef OPENSWMM_RENDER_BINSAMPLER_H
26#define OPENSWMM_RENDER_BINSAMPLER_H
27
29
30#include <QVector>
31
32namespace OpenSWMM::Render
33{
34
55[[nodiscard]] QVector<double>
56sampleBreaksAcrossFrames(const IntervalBinner &binner,
57 const QVector<QVector<double>> &perFrameValues,
58 double sampleRate = 0.2);
59
64[[nodiscard]] QVector<int>
65sampledFrameIndices(int frameCount, double sampleRate);
66
67} // namespace OpenSWMM::Render
68
69#endif // OPENSWMM_RENDER_BINSAMPLER_H
Slice BB-α — classifies a set of numeric samples into N bins.
Definition gisrasterlayer.h:40
QVector< int > sampledFrameIndices(int frameCount, double sampleRate)
Indices of the frames the sampler would pick, for the same frameCount and sampleRate....
Definition binsampler.cpp:17
QVector< double > sampleBreaksAcrossFrames(const IntervalBinner &binner, const QVector< QVector< double > > &perFrameValues, double sampleRate=0.2)
Pick perFrameValues at sampleRate fraction (≥ 1 frame), flatten the selected frames' values,...
Definition binsampler.cpp:48