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.

db4
Doug Coleman 2012-11-05 08:43:46 -08:00
parent 401dd47335
commit a4e55a3eee
2 changed files with 8 additions and 4 deletions

View File

@ -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

View File

@ -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 ;