numeric utilities
baserep y. in base x. clean clean y. to tolerance of x. (default 1e_10) colsum sum data columns of matrix by key fraction convert decimal number to fraction groupndx group indices of y. in x. int01 interval in n steps from 0 to 1 (= steps 0 1,n) linsert linear insert x. (default 2) steps into y. randomize sets a random value into random link range range from a to b [in steps of c] recur solves recurrence r(i)=a(i)+r(i-1)*m(i-1) round round y. to nearest x. (e.g. 1000 round 12345) rounddist round y. to nearest x. preserving total roundint round to nearest integer steps steps from a to b in c stepsDefined items
Name Class Description baserep Verb y. in base x. fraction Verb convert decimal number to fraction int01 Verb interval in n steps from 0 to 1 (= steps 0 1,n) linsert Verb linear insert x. (default 2) steps into y. round Verb round y. to nearest x. (e.g. 1000 round 12345) roundint Verb round to nearest integer clean Verb clean y. to tolerance of x. (default 1e_10) colsum Verb sum data columns of matrix by key groupndx Verb group indices of y. in x. randomize Verb sets a random value into random link range Verb range from a to b [in steps of c] recur Verb solves recurrence r(i)=a(i)+r(i-1)*m(i-1) rounddist Verb round y. to nearest x. preserving total steps Verb steps from a to b in c steps
form: tolerance (default 1e_10) clean numbers sets values less than tolerance to 0
form: key colsum mat sum data columns of matrix on key columns e.g. if column 2 of mat is age, then 2 colsum mat sums the remaining columns by age
Return group indices of elements of y. x. is an integer vector of the starting numbers of each group, assumed to be in ascending order. e.g. 0 0 0 1 1 1 2 2 = 0 3 6 groupndx i.8 i.e. <:@(+/@(<:/))
form: r = m recur a r(0) = a(0) r(i) = a(i)+r(i-1)*m(i-1) e.g 1.05 1.10 recur 100 100 100 100 205 325.5
distributive rounding round y. to nearest x. preserving total to nearest x. e.g. 0.1 rounddist 6$0.45 0.5 0.5 0.5 0.4 0.4 0.4
form: steps a,b,c
system\main\numeric.ijs | Release: 4.02/1998-11-13/12:26 |