Skip to content

Commit a035710

Browse files
Update DeterministicParticleFlowControl.py
1 parent 6c278cb commit a035710

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

DeterministicParticleFlowControl/DeterministicParticleFlowControl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121

2222
class DPFC:
23-
def __init__(self,t1,t2,y1,y2,f,g,N,M,reweight=False, U=None,dens_est='nonparametric',reject=True,plotting=True,kern='RBF',f_true=None,brown_bridge=False):
23+
def __init__(self,t1,t2,y1,y2,f,g,N,M,reweight=False, U=None,dens_est='nonparametric',reject=True,kern='RBF',f_true=None,brown_bridge=False):
2424
"""
2525
Deterministic particle flow control - class initialising function
2626
t1: starting time point
@@ -245,7 +245,7 @@ def forward_sampling_Otto(self):
245245
if self.reweight == True:
246246
if ti>0:
247247

248-
W[:,0] = np.exp(self.U(self.Z[:,:,ti])*self.dt ) #-1
248+
W[:,0] = np.exp(self.U(self.Z[:,:,ti],tt)*self.dt ) #-1
249249
W = W/np.sum(W)
250250

251251
###REWEIGHT

0 commit comments

Comments
 (0)