Closed SpencerFleming closed 4 years ago
Seems to be working just fine with the new changes.
We want to think more about how to convert this into an instance variable. We would like to rename the variable, to make it a more appropriate descriptor. We would like it to be public, or somehow publicly accessable
This is the current state of the code in question.
if (peak->amp >= amp_upper_bound*max || peak->amp < amp_lower_bound
|| peak->triggering_location > n
|| peak->triggering_location <0) {
delete(peak);
results->erase(iter--);
} else{
//set the peak position in the wave
//this will be wrong if a previous peak was removed for any
//reason
peak->position_in_wave = i+1;
}
Where amp_upper_bound's default is 2, and amp_lower_bound's default is 10.
2 should be named something like max_amp_multiplier, default to 2, be a float, and be added to the advanced options
This needs to be added as a command line argument.
Make sure to add help option
Min peak amplitude is in template refactoring. Need to check if we still want a max amplitude option.
In GaussainFitter::find_peaks:
This throws away peaks if they have amplitudes greater than 2 times the max, or less than 10. This relies on another variable, so I'll leave this in QA and discuss it with others before making a plan.