コード例 #1
0
ファイル: smcsquare.py プロジェクト: phystry/py-smc2
 def xresample(self):
     """
     Resample all the x-particles according to their weights.
     """
     self.xparticles[...] = resample2D(self.xparticles, self.xweights,
                                       self.Nx, self.statedimension,
                                       self.Ntheta)
コード例 #2
0
ファイル: smcsquare.py プロジェクト: fivejjs/py-smc2
 def xresample(self):
     """
     Resample all the x-particles according to their weights.
     """
     self.xparticles[...] = resample2D(self.xparticles, self.xweights, self.Nx, self.statedimension, self.Ntheta)
コード例 #3
0
 def xresample(self):
     self.xparticles[...] = resample2D(self.xparticles, self.xweights, self.Nx, self.statedimension, self.Ntheta)
コード例 #4
0
ファイル: parallelSIRs.py プロジェクト: phystry/py-smc2
 def xresample(self):
     self.xparticles[...] = resample2D(self.xparticles, self.xweights,
                                       self.Nx, self.statedimension,
                                       self.Ntheta)