Īmēra pūkete: Inertial and Magnetic Sensor Data Compression Considering the Estimation Error