-
Notifications
You must be signed in to change notification settings - Fork 18
Description
I had another question concerning the sampling. In your sample code, at a certain moment, you define resampling with the same strata of the previous sample to achieve an additional nested sampling.
I'm wondering. This function just generates a new list of sampling points within the same selection of latin hypercube-squares in the example (2 variables).
Is there a way to create an incremental nested sampled set, so that the first time you sample, you get a set of lhs-mdu-sampled points (e.g. 20). And you do this then multiple time but the next 20 points take into account the position of the 20 previously sampled points to generate then 20 more lhs-mdu-sampled points and together you have 40, 60, 80 sampled points then.
In this way a single generated set of 40, 60, 80 lhs-mdu-sampled points should the be the same as an incremental nested set of 2,3,4 times 20 points but the advantage is that you can split up the calculations you have to run in steps of 20 for ex. untill you achieve convergence. So that you don't have to run the whole sampled set at once but can break it down and stop when convergence is achieved. Is there a way to do this with this package?
Attached is an example.
Two sampled sets, generated with the same seed-number. In the first (blue) 120 samples are generated. In the second (red) 240 samples are generated but the second set includes the datapoints from the first set in such a way that if I select the first 120 sample-points from the red dataset, these are the same as the blue dataset. Is this something which is possible to generate with this package?
Nested sample.pdf