#include "signal_fragment.h"
#include <math.h>
Go to the source code of this file.
|
template<typename sample > |
void | measureMultiplexedChannelDynamics (const sample *startSample, const sample *stopSample, const unsigned char stride, sample &min, sample &max) |
| Measures dynamics from samples for a single channel in a multiplexed stream. More...
|
|
◆ measureMultiplexedChannelDynamics()
template<typename sample >
void measureMultiplexedChannelDynamics |
( |
const sample * |
startSample, |
|
|
const sample * |
stopSample, |
|
|
const unsigned char |
stride, |
|
|
sample & |
min, |
|
|
sample & |
max |
|
) |
| |
|
inline |
Measures dynamics from samples for a single channel in a multiplexed stream.
- Parameters
-
startSample | Pointer to the first sample the measurement starts from |
stopSample | Pointer to the last sample where the measurement stops |
stride | Step size in samples |
min | Discovered minima value; the passed value is not reset |
max | Discovered maxima value; the passed value is not reset |
Definition at line 33 of file signal_fragment.cpp.
40 const sample *in = startSample;
41 sample vMin = *in, vMax = *in;
43 while (in < stopSample) {
CustomPoint< numeric > min(const CustomPoint< numeric > &a, const CustomPoint< numeric > &b)
CustomPoint< numeric > max(const CustomPoint< numeric > &a, const CustomPoint< numeric > &b)