Guava ImmutableRangeMap - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Guava ImmutableRangeMap class.

This code example shows how to use the following methods:get
        double upper = attributeValuesAtBinBoundaries[bin + 1];
        return rand.nextDouble() * (upper - lower) + lower;
    } 
 
    public Number sampleHistogram() {
        int randBin = attributeValueRangeMap.get(rand.nextDouble());
        return getRandomDoubleInBin(randBin);
    } 
 
} 
3
CodeRank
See Code Examples for Guava ImmutableRangeMap Methods: