Initial work to separate spectrum processing implementations into stand alone functions from the ProcessedStretch class, to allow visualizations etc without having to instantiate the full ProcessedStretch object
This commit is contained in:
@ -174,15 +174,6 @@ void ProcessedStretch::process_spectrum(REALTYPE *freq)
|
||||
//void ProcessedStretch::process_output(REALTYPE *smps,int nsmps){
|
||||
//};
|
||||
|
||||
|
||||
REALTYPE profile(REALTYPE fi, REALTYPE bwi){
|
||||
REALTYPE x=fi/bwi;
|
||||
x*=x;
|
||||
if (x>14.71280603) return 0.0;
|
||||
return exp(-x);///bwi;
|
||||
|
||||
};
|
||||
|
||||
void ProcessedStretch::do_harmonics(REALTYPE *freq1,REALTYPE *freq2){
|
||||
REALTYPE freq=pars.harmonics.freq;
|
||||
REALTYPE bandwidth=pars.harmonics.bandwidth;
|
||||
|
Reference in New Issue
Block a user