private float gaussian(int sample, int mean){
    int diff = Math.abs(mean - sample);

    // .46 + 2(.22) + 2(.04) + 2(0.01) = 1.0
    if (diff == 0) return 1.0f;
    //else if (diff == 1) return 0.22f;
    //else if (diff == 2) return 0.04f;
    //else if (diff == 3) return 0.01f;
    return 0f;
  }