Handbook Glossary
factorcode.org
pearson-similarity ( a b -- n )


Vocabulary
math.similarity

Inputs
aan object
ban object


Outputs
nan object


Definition
USING: kernel math math.statistics sequences ;

IN: math.similarity

: pearson-similarity ( a b -- n )
over length 3 <
[ 2drop 1.0 ] [ population-corr 0.5 * 0.5 + ] if ;