MCPcopy
hub / github.com/andabi/deep-voice-conversion / normalize_0_1

Function normalize_0_1

utils.py:33–35  ·  view source on GitHub ↗
(values, max, min)

Source from the content-addressed store, hash-verified

31
32
33def normalize_0_1(values, max, min):
34 normalized = np.clip((values - min) / (max - min), 0, 1)
35 return normalized
36
37
38def denormalize_0_1(normalized, max, min):

Callers 1

_get_mfcc_and_specFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected