I would suggest making this change:

```
where the sum of the elements in the vector equals n i. e.  ``subsampled.sum() == n``
```