You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I was wondering if there was a way to ask that the bounds when rescaling a LHC sampler could not be included?
Is there an argument in the function that I am not aware of?
At the moment, I am having to use the below code to add 2 extra samples, which I then use to filter our the values at the bounds:
function draw_lhs(dist, n::Int)
samples = randomLHC(n + 2, 1) |> # Add 2 dummy samples
x -> scaleLHC(x, [(0, 1)])[:, 1] |> # rescale LHC using bounds that I would like not to be included in the sampling
x -> filter(∉((0, 1)), x) |> # Remove 2 samples corresponding to the bounds (Pr = 0 and Pr = 1)
x -> sort(x) |>
x -> quantile(dist, x)
return samples
end
Kind Regards,
Dom
The text was updated successfully, but these errors were encountered:
Hi,
This is not possible currently. Either you can specify the bounds the be narrower and so that they coincide with your centers or create a range which is n+2 and then discard the edges.
Hi,
I was wondering if there was a way to ask that the bounds when rescaling a LHC sampler could not be included?
Is there an argument in the function that I am not aware of?
At the moment, I am having to use the below code to add 2 extra samples, which I then use to filter our the values at the bounds:
Kind Regards,
Dom
The text was updated successfully, but these errors were encountered: