Skip to content

Commit

Permalink
clarify interpolate documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
dgtized committed Mar 11, 2024
1 parent ddafd28 commit 09c9895
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/shimmers/math/core.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,9 @@
(defn interpolate
"For `xs` values, smoothly interpolate using `t` in [0.0,1.0).
The parameter `k` in [0.0,1.0), determines how long to stay at each values."
The values in `xs` are distributed at even intervals along the x-axis in the
range of `t`. The parameter `k` in [0.0,1.0), determines how long to stay at
each values."
[xs k t]
(let [n (count xs)
k (* 0.5 (mod k 1.0))
Expand Down

0 comments on commit 09c9895

Please sign in to comment.