Please the J code below. I want the verb normalize_data to work on the columns of a matrix which mean and variance will do. So I had to do the following
|: normalize_data "1 |: A mean=:+/%# variance=: (mean@:*:)-(*:@ mean) normalize_data=: ([-mean)%(%:@: variance) cheers Roelof Contact information Dr. Roelof K. Brouwer PEng Professor Department of Computing Science School of Advanced Technologies and Mathematics Thompson Rivers University 900 McGill Road, PO Box 3010 Kamloops, BC, Canada,V2C 5N3 skype RoelofBrouwer telephone numbers 1-250 828 5219 work 1-250-377-6133 fax home page <http://www.tru.ca/advtech/compsci/faculty/rbrouwer> www.tru.ca/advtech/compsci/faculty/rbrouwer email <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED] www.cariboo.tru.ca/advtech/compsci/faculty/rbrouwer/pickup/flighttoNanaimo.w mv www.picasaweb.google.com/rkbrouwer ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
