normalize_observations function

Normalize observations