Function average Mean Square Error 'AMSE' For a given data f, the function 'AMSE' returns the average mean square error for the data over all samples

amse(f)

Arguments

f

data of an n x nx matrix, where n is number of samples (rows) and nx reperesents the grid size