math.statistics: Rename full-* to population-*. Full, while somewhat descriptive of using the entire dataset, is not a technical term, while population is used in Mathematica and stats books.
parent
401dd47335
commit
a4e55a3eee
|
@ -294,7 +294,7 @@ ARTICLE: "math.statistics" "Statistics"
|
|||
|
||||
ABOUT: "math.statistics"
|
||||
|
||||
{ var population-var sample-var } related-words
|
||||
{ std population-std sample-std } related-words
|
||||
{ ste population-ste sample-ste } related-words
|
||||
{ corr population-corr sample-corr } related-words
|
||||
{ var var-ddof population-var sample-var } related-words
|
||||
{ std std-ddof population-std sample-std } related-words
|
||||
{ ste ste-ddof population-ste sample-ste } related-words
|
||||
{ corr corr-ddof population-corr sample-corr } related-words
|
||||
|
|
|
@ -371,6 +371,10 @@ ALIAS: corr sample-corr
|
|||
[ dup mean v-n ] [ std ] bi
|
||||
dup zero? [ drop ] [ v/n ] if ;
|
||||
|
||||
: standardize-2d ( u -- v )
|
||||
flip dup [ [ mean ] [ std ] bi 2array ] map
|
||||
[ [ first v-n ] 2map ] keep [ second v/n ] 2map flip ;
|
||||
|
||||
: differences ( u -- v )
|
||||
[ 1 tail-slice ] keep [ - ] 2map ;
|
||||
|
||||
|
|
Loading…
Reference in New Issue