Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible additional method #28

Closed
vtomanov opened this issue Jan 2, 2019 · 2 comments
Closed

Possible additional method #28

vtomanov opened this issue Jan 2, 2019 · 2 comments
Labels

Comments

@vtomanov
Copy link

vtomanov commented Jan 2, 2019

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;
}
}

@kosme
Copy link
Owner

kosme commented Jan 3, 2019

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

@kosme kosme added the requests label Jan 3, 2019
@vtomanov
Copy link
Author

vtomanov commented Jan 4, 2019

Agree closing the issue

@vtomanov vtomanov closed this as completed Jan 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants