summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2014-08-01 07:26:15 -0400
committerDavid Thompson <dthompson2@worcester.edu>2014-08-01 07:26:15 -0400
commit06d9fc69fdf0988aceea64fa2310c22deddb107d (patch)
treef45dc6c8c46015c77870b593460a8b61c790f06b
parentb93d91239564f4eece6a5ff2a2b7ba2bd1acf983 (diff)
Tweak docstring for linear-scale.
* sly/math.scm (linear-scale): Tweak docstring.
-rw-r--r--sly/math.scm6
1 files changed, 3 insertions, 3 deletions
diff --git a/sly/math.scm b/sly/math.scm
index c25e24d..1a5f2c6 100644
--- a/sly/math.scm
+++ b/sly/math.scm
@@ -92,8 +92,8 @@ actually less than MAX."
((> x max) max)
(else x)))
-(define (linear-scale min max a b val)
- "Map a VAL in the range [MIN,MAX] to numbers in [A,B]"
+(define (linear-scale min max a b n)
+ "Map a number N in the range [MIN,MAX] to the range [A,B]."
(+ a
- (/ (* (- b a) (- val min))
+ (/ (* (- b a) (- n min))
(- max min))))