Digital energy gain