Thursday, October 11, 2012

R/Matlab Anonymous functions

R for variable X:
means <- function(x)  rnorm(1,x)

Matlab
means = @(x) x+randn(1)

No comments:

AI

Despite the benefits of AI we are starving for humanity.