Cool: in that case, it might be a cleaner API to say

```js
 var result = ss.chi_squared_goodness_of_fit(data, ss.poisson_distribution, significance);
```

This way the failure states are simpler, users can provide custom distribution functions themselves, and they need to rely less on documentation for knowing the potential distribution options.