Commit 8dadf28
Fix division by zero and optimize min/max calculations
- Cache min/max values to avoid redundant calculations
- Add division by zero protection when normalizing arrays
Co-authored-by: adamjtaylor <14945787+adamjtaylor@users.noreply.github.com>1 parent 7f45ad2 commit 8dadf28
1 file changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
40 | 46 | | |
41 | 47 | | |
42 | 48 | | |
| |||
0 commit comments