##// END OF EJS Templates
slight modification to the binAbove calcultion (reaction wheels filtering))
paul -
r288:3e4133f0e255 R3_plus draft
parent child
Show More
@@ -974,7 +974,7 void setFBinMask( unsigned char *fbins_m
974 binBelow = (int) ( floor( ((double) fmin) / ((double) deltaFreq)) );
974 binBelow = (int) ( floor( ((double) fmin) / ((double) deltaFreq)) );
975
975
976 // compute the index of the frequency bin immediately above fMAX
976 // compute the index of the frequency bin immediately above fMAX
977 binAbove = (int) ( ceil( ((double) fMAX) / ((double) deltaFreq)) );
977 binAbove = (int) ( floor( ((double) fMAX) / ((double) deltaFreq)) );
978
978
979 for (bin = binBelow; bin <= binAbove; bin++)
979 for (bin = binBelow; bin <= binAbove; bin++)
980 {
980 {
General Comments 0
You need to be logged in to leave comments. Login now