You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also a method void MaxPeak(uint16_t start_idx, double *f, double *v) is very useful - e.g. when you want to get the max peak not the major peak - and also filter the first n bins e.g. 馃憤
.....
uint16_t IndexOfMaxY = 0;
for (uint16_t i = start_idx; i < ((this->_samples >> 1) + 1); i++) {
if (this->_vReal[i] > maxY) {
maxY = this->_vReal[i];
IndexOfMaxY = i;
}
}
The text was updated successfully, but these errors were encountered:
I think I am not understanding what you are asking for because I don't see in what situation that method would be useful. Most of the times, the value of the major peak falls between two measurements in the array. With the method you are asking for, that value would be completely ignored
Also a method void MaxPeak(uint16_t start_idx, double *f, double *v) is very useful - e.g. when you want to get the max peak not the major peak - and also filter the first n bins e.g. 馃憤
.....
uint16_t IndexOfMaxY = 0;
for (uint16_t i = start_idx; i < ((this->_samples >> 1) + 1); i++) {
if (this->_vReal[i] > maxY) {
maxY = this->_vReal[i];
IndexOfMaxY = i;
}
}
The text was updated successfully, but these errors were encountered: