Let say I want to generate 1,000,000,000,000 samples? I tried using A=rand(100000000,5) and its still okay. But is there to generate more than 100 million samples? Say, 1 Billion?
generate more random numbers
2 次查看(过去 30 天)
显示 更早的评论
Hi everyone, when i try to generate more 100 million random sample, I memory issue with matlab.
Is there a way to generate more than 100 million samples?
8 个评论
dpb
2019-8-21
For importance sampling you would have to have the translation adjustment for the normalization from the importance-sampled distribution.
Unless it takes multiple samples to actually compute the results, there's nothing preventing doing the accumulation dynamically or from processing output disk file. Would, of course, require binning to a number of bins that is computable but even there the bins could theoretically be maintained in tall array that isn't all in memory at once.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!