Center of mass encoding: a self-adaptive representation with adjustable redundancy for real-valued parameters