Code example for SortedMap

Methods: lastKey, size

0
 
// Javadoc inherited. 
    public SampleStatistics[] getAllSampleStat() { 
        SampleStatistics[] allStats = null;
        SimpleStatsTimeVarying temp;
        if (indexedStats.size() > 0) {
            int high = indexedStats.lastKey();
            int length = high + 1;
            allStats = new SampleStatistics[length];
            for (int i = 0; i < allStats.length; i++) {
                temp =  indexedStats.get(i);
                allStats[i] = temp != null ? (SampleStatistics) temp.clone() :
                    new SimpleStatsTimeVarying(this.getName());
            } 
        } 
        return allStats;
    } 
 
// Javadoc inherited. 
    public double[] getAllMaxObs() { 
        double[] max = null;