A theory of learning with constrained weight-distribution