336337338339340341342343344345346
explList.add(_function.explain(_dataCache.freqs[idx], _boostList[idx])); } count++; encoded >>>= 1; } Explanation topLevel = _function.explain(scoreList.toFloatArray()); for (Explanation sub : explList){ topLevel.addDetail(sub); } return topLevel; }
273274275276277278279280281282283
if (idx>=0){ scoreList.add(_function.score(_dataCache.freqs[idx], _boostList[idx])); explList.add(_function.explain(_dataCache.freqs[idx], _boostList[idx])); } } Explanation topLevel = _function.explain(scoreList.toFloatArray()); for (Explanation sub : explList){ topLevel.addDetail(sub); } return topLevel; }
318319320321322323324325326327328
266267268269270271272273274275276
286287288289290291292293294295296
248249250251252253254255256257258
{ Color retval = null; COSArray array = (COSArray)annot.getDictionaryObject( "color" ); if( array != null ) { float[] rgb = array.toFloatArray(); if( rgb.length >=3 ) { retval = new Color( rgb[0], rgb[1], rgb[2] ); } }
7475767778798081828384
triangleList = new ArrayList<ShadedTriangle>(); LOG.debug("Background: " + shading.getBackground()); COSArray bg = shading.getBackground(); if (bg != null) { background = bg.toFloatArray(); rgbBackground = convertToRGB(background); } } /**
140141142143144145146147148149150
// get background values if available COSArray bg = shading.getBackground(); if (bg != null) { background = bg.toFloatArray(); rgbBackground = convertToRGB(background); } longestDistance = getLongestDis(); colorTable = calcColorTable(); }