fix digital synapse mean calculation