Merge branch 'main' into solution
This commit is contained in:
commit
966af3b529
|
@ -32,8 +32,6 @@ def ratio(value, start, end):
|
|||
|
||||
def scale(value, domain_min, domain_max, range_min, range_max):
|
||||
"Given a value within a domain, returns the scaled equivalent within range."
|
||||
ratio = (value - domain_min) / (domain_max - domain_min)
|
||||
return range_min + ratio * (range_max - range_min)
|
||||
raise NotImplementedError
|
||||
|
||||
def get_x_values(points):
|
||||
|
|
Loading…
Reference in New Issue