Added some bispectrum computer

This commit is contained in:
Guilhem Lavaux 2016-11-22 07:56:12 +02:00
parent 0350a22a0b
commit 3d67b66ae0
6 changed files with 330 additions and 1 deletions

View file

@ -0,0 +1,10 @@
import numpy as np
import cosmotool as ct
f=0.01
d=np.random.normal(size=(16,16,16))
rho = d + f *(d*d - np.average(d*d))
B = ct.bispectrum(rho, 1, 16, fourier=False)
P = ct.powerspectrum(rho, 1, 16, fourier=False)