/** * A couple of very simple algorithms useful for counting primitive operations * @author gtowell * Created: Oct 1, 2020 */ public class PrimCount { /** * Compute the average of the data * @param data the data to be averaged. * @return the average */ public double allAverage(long[] data) { double res = 0; for (int i=0; i