All Questions
6 questions
4
votes
1
answer
74
views
Speeding up RandomVariate with custom probability distribution
I have the defined a custom distribution, which is a Gaussian where the exponent can be any real n greater than 0 (set to actually be >0.5 in use), i.e.
...
1
vote
2
answers
195
views
Sampling data from numerical values of density distribution of nucleons
How could i sample my data which follows distribution if i have only numerical values of density distribution as an example data attached as in picture
I tried but do not know how to do it.
The data:...
1
vote
1
answer
133
views
How to quickly sample from the following distributions
Consider the following distributions:
...
0
votes
1
answer
84
views
Is there a difference between generating and loading data?
EDIT-1
This is a minimal example where an error occurs after 44538 samples generated in d1 upon importing as d2. Note that if <...
0
votes
1
answer
183
views
Sampling two integer lists of given sizes from a distribution that have equal sums
(This question emerged from discussions in this post.)
Context and code sample:
I am trying to figure out if there is a way to generate two $a$ and $b,$ comprised of $n_a$ and $n_b$ integers which ...
0
votes
0
answers
21
views
Simulating data from a piecewise pdf occasionally returns an error [duplicate]
In the following code, I generate data from a piecewise PDF. Usually, I get a sample size of ns, but sometimes I get an error message:
Error: RandomVariate::unsdst:...