Methods and apparatus for encoding / decoding signals and computer program product for