assert('normalize returns', {
x <- matrix(rnorm(80, sd=4), ncol=4)
y <- normalize(x)
v <- apply(y, 2, var)
all.equal(v, rep(1,4), tolerance=0.0001)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.