w*******x 发帖数: 489 | 1 【 以下文字转载自 Mathematics 讨论区 】
发信人: woshialex (Qi), 信区: Mathematics
标 题: 用怎样的算法产生3维空间随机数使得空间相关性为exp(-|r|/a0)
发信站: BBS 未名空间站 (Tue Jun 9 14:26:13 2009, 美东)
a0为给定相关半径..
谢谢..想了很久都搞不定. 用Ising model产生一维的结果很好, 三维的不行.. | x******i 发帖数: 3022 | 2
Here's a standard procedure that works for all translation invariant
correlation functions.
1. Fourier transform correlation function to get spectral density.
[In your case, it is probably 8*pi*a^3/(1+a^2*k^2)^2]
2. Generate random data with delta-function correlation
3. Spatial Fourier Transform that data
4. Filter with Sqrt[spectral density]
5. Inverse Fourier Transform
【在 w*******x 的大作中提到】 : 【 以下文字转载自 Mathematics 讨论区 】 : 发信人: woshialex (Qi), 信区: Mathematics : 标 题: 用怎样的算法产生3维空间随机数使得空间相关性为exp(-|r|/a0) : 发信站: BBS 未名空间站 (Tue Jun 9 14:26:13 2009, 美东) : a0为给定相关半径.. : 谢谢..想了很久都搞不定. 用Ising model产生一维的结果很好, 三维的不行..
| w*******x 发帖数: 489 | 3 非常非常感谢...
过会我研究研究! 还没搞懂..
【在 x******i 的大作中提到】 : : Here's a standard procedure that works for all translation invariant : correlation functions. : 1. Fourier transform correlation function to get spectral density. : [In your case, it is probably 8*pi*a^3/(1+a^2*k^2)^2] : 2. Generate random data with delta-function correlation : 3. Spatial Fourier Transform that data : 4. Filter with Sqrt[spectral density] : 5. Inverse Fourier Transform
|
|