Closed kovasap closed 2 years ago
Many thanks for reporting this, the docstring was outdated. The result you get is actually a kixi.stats.protocols/PParamaterised
so can get the parameter vector by invoking kixi.stats.protocols/parameters
on it.
Got it, working as expected now. Thank you!
Also this library is great and easy to understand, especially for someone new to clojure like me :).
Here it says that
simple-linear-regression
returns a vector with[offset slope]
, but when I run it like this:I get this thing in my browser log:
and I cannot use
(first)
or(last)
to get the offset and slope respectively. Am I misunderstanding something about the transduce syntax perhaps?