Commit 29e56ace authored by Theo Steininger's avatar Theo Steininger

Fixed carrier_mapper.py

parent 57fde4d0
......@@ -39,6 +39,6 @@ def unity_mapper(x, a=0, m=0.5, b=1):
"""
# rescale and shift
if x <= 0.5:
return 2*x * (m-a) + m
return 2*x * (m-a) + a
else:
return (2*x-1) * (b-m) + b
return (2*x-1) * (b-m) + m
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment