- Timestamp:
- Apr 2, 2019, 8:29:31 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ohana.20190329/src/opihi/cmd.data/threshold.c
r40623 r40664 71 71 72 72 if (!REVERSE) { 73 // this algorithm assumes vecy[BinMax] > threshold, vecy[BinMin] < threshold 74 if (vecy[0].elements.Flt[BinMin] > value) { 75 gprint (GP_ERR, "ERROR: all values above threshold\n"); 76 return FALSE; 77 } 78 if (vecy[0].elements.Flt[BinMax] < value) { 79 gprint (GP_ERR, "ERROR: all values below threshold\n"); 80 return FALSE; 81 } 73 82 while (Nhi - Nlo > 10) { 74 83 N = 0.5*(Nlo + Nhi); … … 89 98 } 90 99 } else { 100 // this algorithm assumes vecy[BinMin] > threshold, vecy[BinMax] < threshold 101 if (vecy[0].elements.Flt[BinMin] < value) { 102 gprint (GP_ERR, "ERROR: all values below threshold\n"); 103 return FALSE; 104 } 105 if (vecy[0].elements.Flt[BinMax] > value) { 106 gprint (GP_ERR, "ERROR: all values above threshold\n"); 107 return FALSE; 108 } 91 109 while (Nhi - Nlo > 10) { 92 110 N = 0.5*(Nlo + Nhi);
Note:
See TracChangeset
for help on using the changeset viewer.
