public List<SampledApdexScore> getSampledAgentApdexScoreList(String agentName) {
        AgentHistogram agentHistogram = selectAgentHistogram(agentName);
        if (agentHistogram == null) {
            return List.of();
        }

        List<SampledApdexScore> result = new ArrayList<>();
        for (TimeHistogram timeHistogram : agentHistogram.getTimeHistogram()) {
            if (timeHistogram.getTotalCount() != 0) {
                DataPoint<Double> agentStatPoint = Points.of(timeHistogram.getTimeStamp(), ApdexScore.calculateApdexScore(timeHistogram));
                result.add(new SampledApdexScore(agentStatPoint));
            }
        }
        return result;
    }
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