Skip to content

Commit 6476ab2

Browse files
committed
renamed n_particles to default_n_particles
1 parent 19f2864 commit 6476ab2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/qinfer/resamplers.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,10 @@ class LiuWestResampler(Resampler):
182182
has zero norm.
183183
:param callable kernel: Callable function ``kernel(*shape)`` that returns samples
184184
from a resampling distribution with mean 0 and variance 1.
185-
:param int n_particles: The default number of particles to draw during
185+
:param int default_n_particles: The default number of particles to draw during
186186
a resampling action. If ``None``, the number of redrawn particles
187-
redrawn will be equal to the number of particle given.
188-
This value of ``n_particles`` can be overridden by any integer
187+
redrawn will be equal to the number of particles given.
188+
The value of ``default_n_particles`` can be overridden by any integer
189189
value of ``n_particles`` given to ``__call__``.
190190
191191
@@ -198,10 +198,10 @@ class LiuWestResampler(Resampler):
198198
"""
199199
def __init__(self,
200200
a=0.98, h=None, maxiter=1000, debug=False, postselect=True,
201-
zero_cov_comp=1e-10, n_particles=None,
201+
zero_cov_comp=1e-10, default_n_particles=None,
202202
kernel=np.random.randn
203203
):
204-
self._default_n_particles = n_particles
204+
self._default_n_particles = default_n_particles
205205
self.a = a # Implicitly calls the property setter below to set _h.
206206
if h is not None:
207207
self._override_h = True

0 commit comments

Comments
 (0)