added linear decoding with the frobenius norm error metric