rmse now counted only for one analysis
transformation matrix replaced by function handle
transformation matrix replaced by function handle
function for 2d transformation using schur product