MCPcopy Create free account
hub / github.com/MrNothing/AI-Blocks / quantify

Method quantify

Sources/build_scripts/global_functions.py:717–718  ·  view source on GitHub ↗
(data, u=256)

Source from the content-addressed store, hash-verified

715 return (Encoder.uLawInvert((data-0.5)*2)+1)/2
716
717 def quantify(data, u=256):
718 return np.floor(data/(1/u))*(1/u)
719
720 def max_value(data=[]):
721 _max = 0

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected