// triples are (332 index, range (pixel count), weight) static double imageAnalysis_332parameterScore(LT3 parameters, RGBImage img) { int[] histogram = histogram332_array(img); double score = 0; for (T3 t : parameters) score += t.c*fourPointRangeScore(t.b, histogram[t.a]); ret score; }