No tabs.
This commit is contained in:
parent
0cc22651bb
commit
52f219398c
|
@ -145,8 +145,8 @@ public class EnumeratedDistribution<T> implements Serializable {
|
|||
* @return the value of the probability mass function at {@code x}
|
||||
*/
|
||||
double probability(final T x) {
|
||||
final Double p = massPoints.get(x);
|
||||
return p == null ? 0 : p.doubleValue();
|
||||
final Double p = massPoints.get(x);
|
||||
return p == null ? 0 : p.doubleValue();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -47,7 +47,7 @@ public class EnumeratedDistributionTest {
|
|||
|
||||
@Test
|
||||
public void testGetPmf() {
|
||||
final String s = "bike";
|
||||
final String s = "bike";
|
||||
final List<Pair<String, Double>> pmf = Arrays.asList(
|
||||
new Pair<String, Double>(s, 0.1),
|
||||
new Pair<String, Double>(s, 0.3),
|
||||
|
|
Loading…
Reference in New Issue