Added some bispectrum computer
This commit is contained in:
parent
0350a22a0b
commit
3d67b66ae0
6 changed files with 330 additions and 1 deletions
10
python_sample/test_bispectrum.py
Normal file
10
python_sample/test_bispectrum.py
Normal 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)
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue