Here you can find the source of averageChroma(float[] chromaSums, int countChromas)
public static float[] averageChroma(float[] chromaSums, int countChromas)
//package com.java2s; //License from project: Open Source License public class Main { public static float[] averageChroma(float[] chromaSums, int countChromas) { float[] resultChroma = new float[12]; for (int i = 0; i < chromaSums.length; i++) { resultChroma[i] = chromaSums[i] / countChromas; }//from www . j a v a 2 s.com return resultChroma; } }