## Psych 285: Computational Statistics

and Statistical Visualization## Professor Forrest Young

## Assignment 2

Functional Programming - 2

Due Friday, Feb 2

Write NORMALIZE, a function that normalizes a matrix

X(i.e., makes the mean of each columnMeanand the standard deviationStDev).The function should take a matrix

Xas its only required argument, with keyword argumentsMean(default 0.0) andStDev(default 1.0).The function should return a list whose first element is the normalized matrix, second element is a list or vector of column means of

X, and third elements is a list or vector of column standard deviations ofX.You should base this function on one of the two CENTER functions.

Please send your code to me by e-mail before class on the due date.

## To get in touch:

email: forrest@unc.edu WWW: http://forrest.psych.unc.edu