int[] hits = new int[ch]; · double[] total = new double[ch];
int c = channel[i]; · hits[c] = hits[c] + 1; · total[c] = total[c] + amp[i];
double[] avg = new double[hits.Length]; · if (hits[c] > 0) avg[c] = total[c] / hits[c];
int[] b = a; ⟶ מערך אחד · Array.Copy(a, b, a.Length) ⟶ שני מערכים