public float fruitOccuranceMLE(int fruit) {
    float sum = 0f;
    for (int i = 0; i < occuranceHist[fruit].length; i++){
      sum += occuranceHist[fruit][i] * i;
    }

    return sum / occuranceHist[0].length;
  }