A Statistical Approach to Stochastic Computing Design and Analysis