Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

pdfs: formatting

  • Loading branch information...
commit 658e5cb4435606afe33ef08784515da41b25c22e 1 parent 72396c9
Matěj Laitl authored

Showing 1 changed file with 7 additions and 6 deletions. Show diff stats Hide diff stats

  1. +7 6 pybayes/pdfs.py
13 pybayes/pdfs.py
@@ -665,15 +665,16 @@ def normalise_weights(self):
665 665 return True
666 666
667 667 def get_resample_indices(self):
668   - r"""Calculate first step of resampling process (dropping low-weight particles and replacing
669   - them with more weighted ones.
  668 + r"""Calculate first step of resampling process (dropping low-weight particles and
  669 + replacing them with more weighted ones.
670 670
671   - :return: integer array of length n: :math:`(a_1, a_2 \dots a_n)` where :math:`a_i` means
672   - that particle at ith place should be replaced with particle number :math:`a_i`
  671 + :return: integer array of length n: :math:`(a_1, a_2 \dots a_n)` where
  672 + :math:`a_i` means that particle at ith place should be replaced with particle
  673 + number :math:`a_i`
673 674 :rtype: :class:`numpy.ndarray` of ints
674 675
675   - *This method doesnt modify underlying pdf in any way - it merely calculates how particles
676   - should be replaced.*
  676 + *This method doesnt modify underlying pdf in any way - it merely calculates how
  677 + particles should be replaced.*
677 678 """
678 679 n = self.weights.shape[0]
679 680 cum_weights = np.cumsum(self.weights)

0 comments on commit 658e5cb

Please sign in to comment.
Something went wrong with that request. Please try again.