Scale from [0, 1] to [-1, +1]
(x)
| 2046 | |
| 2047 | |
| 2048 | def normalize(x): |
| 2049 | """Scale from [0, 1] to [-1, +1]""" |
| 2050 | return x * 2 - 1 |
| 2051 | |
| 2052 | def get_mask(metric, min_depth=0.01, max_depth=50.0): |
| 2053 | mask = (metric > min_depth) & (metric < max_depth) |
nothing calls this directly
no outgoing calls
no test coverage detected