Commit 7cdbbcf
Bugfix: Fix Compute Crossing Time (#165)
- Rolled compute_crossing_time() back to linear-search approach since y-values aren't guaranteed to be in sorted order and thus binary search cannot be used to find the first occurence of data above a certain threshold.
---------
Co-authored-by: Cen Wang <cenwang@umass.edu>1 parent f8e69cb commit 7cdbbcf
1 file changed
Lines changed: 9 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
97 | 98 | | |
98 | 99 | | |
99 | 100 | | |
| |||
116 | 117 | | |
117 | 118 | | |
118 | 119 | | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | 120 | | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
138 | 129 | | |
139 | 130 | | |
140 | 131 | | |
| |||
0 commit comments