private static void createAVG(List<Map<String, Float>> normalizedScores) { if (isFirstTime) { avgScore = AVGScore.getFreqFingerprint(normalizedScores); isFirstTime = false; } else { avgScore = AVGScore.getCachedFreqFingerprint(normalizedScores); } }
private static void createCorrStr(List<Map<String, Float>> normalizedScores) { CorrelationFactor factors = new CorrelationFactor(normalizedScores, avgScore); if (isFirstTime) { isFirstTime = false; corrStrengthScore = AVGScore.getCorrelationStrengthFingerprint(factors.getCorrFactors()); } else { corrStrengthScore = AVGScore.getCachedCorrelationStrengthFingerprint(factors.getCorrFactors()); } }