Handbook
Glossary
least-squares ( xy-pairs -- alpha beta )
Vocabulary
math
.
statistics
Inputs
xy-pairs
an
object
Outputs
alpha
an
object
beta
an
object
Definition
USING:
kernel
math
math.statistics.private
;
IN:
math.statistics
:
least-squares
( xy-pairs -- alpha beta )
r-stats
[
2dup
]
4dip
[
(r)
]
2keep
swap
/
*
[
swapd
*
-
]
keep
;