public class WeightedStrings extends Object implements LongFunction<String>
a:0.25;b:0.25;c:0.5or
a:1;b:1.0;c:2.0The unit weights are normalized to the cumulative sum internally, so it is not necessary for them to add up to any particular value.
| Constructor and Description |
|---|
WeightedStrings(String valuesAndWeights) |
public WeightedStrings(String valuesAndWeights)
public String apply(long value)
apply in interface LongFunction<String>Copyright © 2018. All rights reserved.