List<ProjectMeasure> measures = (List<ProjectMeasure>) entry.getValue();
List<Double> values = getValues(measures);
TendencyAnalyser analyser = new TendencyAnalyser(values, MAX_DAYS);
Number[] slopeAndLevel = getSlopeAndLevel(analyser, key.getMetric());
if (slopeAndLevel[0] != null && slopeAndLevel[1]!=null) {
module.createTendency(((MeasureKey) key.clone()), (Double) slopeAndLevel[0], (Integer) slopeAndLevel[1], MAX_DAYS);
}
}
}
protected Number[] getSlopeAndLevel(TendencyAnalyser analyser, Metric metric) {