private List<ApplicationStatPoint> createApplicationStatPoints(TimeWindow window,
                                                                   List<Double> min, List<String> minAgentId,
                                                                   List<Double> max, List<String> maxAgentId,
                                                                   List<Histogram> sumHistogram) {
        List<ApplicationStatPoint> applicationStatPoints = new ArrayList<>();
        for (long timestamp : window) {
            int index = window.getWindowIndex(timestamp);
            Histogram histogram = sumHistogram.get(index);
            if (histogram.getTotalCount() != 0) {
                double avg = ApdexScore.calculateApdexScore(histogram);
                ApplicationStatPoint point = new ApplicationStatPoint(timestamp, min.get(index), minAgentId.get(index), max.get(index), maxAgentId.get(index), avg);
                applicationStatPoints.add(point);
            }
        }
        return applicationStatPoints;
    }
most of the features have been delegated to AgentHistogramList upon refactoring
TODO: functionality reduced to creating views - need to be renamed or removed

@author emeroad
web/src/main/java/com/navercorp/pinpoint/web/applicationmap/histogram/AgentTimeHistogram.java