>>
<<
Ndx
Usr
Pri
Phr
Dic
Rel
Voc
!:
wd
Help
Dictionary
14. Compositions (Based on Hooks and Forks)
A verb is produced by trains of three or two verbs,
as defined by the following diagrams:
FORK HOOK
g g g g
/ \ / \ / \ / \
f h f h y h x h
| | / \ / \ | |
y y x y x y y y
For example, 5(+*-)3 « (5+3)*(5-3) .
The foregoing definition is from
Section II F of the dictionary.
The following examples concern functions used in statistics:
mean=: +/%# Mean
norm=: ] - +/ % # Centered on mean
sqcm=: 2: ^~ ] - +/ % # Sqr of centred on mean
stdv=: [: mean 2: ^~ ] - mean=: +/%# Standard Deviation
var=: 2:%:[:mean 2:^~]-mean=:+/%# Variance
,.&.>@(];mean;norm;sqcm;stdv;var) y=: 2 3 4 5
+-+---+----+----+----+-------+
|2|3.5|_1.5|2.25|1.25|1.11803|
|3| |_0.5|0.25| | |
|4| | 0.5|0.25| | |
|5| | 1.5|2.25| | |
+-+---+----+----+----+-------+
>>
<<
Ndx
Usr
Pri
Phr
Dic
Rel
Voc
!:
wd
Help
Dictionary