A Theory of the Mechanics of Information: Generalization Through Measurement of Uncertainty (Learning is Measuring)