montecarlo
Looking for a way to optimize this algorithm for parsing a very large string
The following class parses through a very large string (an entire novel of text) and breaks it into consecutive 4-character strings that are stored as a Tuple. Then each tuple can be assigned a probab[详细]
2023-04-05 14:39 分类:问答Compare and Contrast Monte-Carlo Method and Evolutionary Algorithms
What\'s the relationship between the Monte-Carlo Method and Evolutionary Algorithms? On the face of it they seem to be unrelated simulation methods used to so开发者_StackOverflow社区lve complex proble[详细]
2023-04-05 13:49 分类:问答Algorithm for computing the plausibility of a function / Monte Carlo Method
I am writing a program that attempts to duplicate the algorithm discussed at the beginning of this article,[详细]
2023-04-05 11:28 分类:问答Organizing XML data into dictionaries
I\'m trying to organize my data into a dictionary format from XML data. This will be used to run Monte Carlo simulations.[详细]
2023-03-22 07:22 分类:问答What (else) is wrong with using time as a seed for random number generation?
I understand that time is an insecure seed for random number generation because it effectively reduces the size of the seed space.[详细]
2023-03-19 14:33 分类:问答picking without replacement in java
I often* find myself in need of a data structure which has the following properties: can be initialized with an array of n objects in O(n).[详细]
2023-03-16 09:42 分类:问答How do I most effectively prevent my normally-distributed random variable from being zero?
I\'m writing a Monte Carlo algorithm, in which at one point I need to divide by a random variable. More precisely: the random variable is used as a step width for a difference quotient, so I actually[详细]
2023-03-14 02:06 分类:问答Matlab: How to generate a 4x1 matrix of random variables, assuming a 4x4 correlation matrix?
I start with 4 time series开发者_高级运维, labelled A, B, C, D. I generate the following: A 4x1 matrix of means.[详细]
2023-03-11 01:14 分类:问答stack overflow exception at program start (CUDA Monte Carlo Pi)
My problem is that I am receiving a stack overflow exception at program start when the program first enters main. My program is a Parallel Monte Carlo Pi calculator using CUDA. When I try and debug th[详细]
2023-03-09 16:33 分类:问答Using OpenMP to calculate the value of PI
I\'m trying to learn how to use OpenMP by parallelizing a monte carlo code that calculates the value of PI with a given number of iterations. The meat of the code is this:[详细]
2023-03-09 08:02 分类:问答