MCPcopy Create free account
hub / github.com/Francis-Rings/MotionFollower / ordered_halving

Function ordered_halving

src/pipelines/context.py:6–11  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

4
5
6def ordered_halving(val):
7 bin_str = f"{val:064b}"
8 bin_flip = bin_str[::-1]
9 as_int = int(bin_flip, 2)
10
11 return as_int / (1 << 64)
12
13
14def uniform(

Callers 1

uniformFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected