This page is hosted on AFS file server space, which is being shut down on November 13, 2018.
If you are seeing this message, your service provider needs to take steps now.
Visit afs.unc.edu for more information.

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