File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 1
1
name = " UncertaintyQuantification"
2
2
uuid = " 7183a548-a887-11e9-15ce-a56ab60bad7a"
3
- authors = [" Jasper Behrensdorf <behrensdorf@irz.uni-hannover.de>" , " Ander Gray <ander.gray@liverpool.ac.uk>" ]
4
- version = " 0.8.0"
3
+ authors = [
4
+ " Jasper Behrensdorf <behrensdorf@irz.uni-hannover.de>" ,
5
+ " Ander Gray <ander.gray@liverpool.ac.uk>" ,
6
+ ]
7
+ version = " 0.8.1"
5
8
6
9
[deps ]
7
10
Bootstrap = " e28b5b4c-05e8-5b66-bc03-6f0c0a0a06e0"
Original file line number Diff line number Diff line change @@ -239,19 +239,18 @@ function nextlevelsamples(
239
239
inputs:: Union{Vector{<:UQInput},UQInput} ,
240
240
sim:: SubSetInfinity ,
241
241
)
242
- samples_per_seed = Int64 (floor (sim. n / nrow (samples )))
242
+ samples_per_seed = Int64 (floor (sim. n / length (performance )))
243
243
244
244
random_inputs = filter (i -> isa (i, RandomUQInput), inputs)
245
245
rvs = names (random_inputs)
246
246
247
- to_standard_normal_space! (inputs, samples)
248
-
249
247
samples = repeat (samples, samples_per_seed)
250
248
performance = repeat (performance, samples_per_seed)
251
249
252
- means = Matrix {Float64} (samples[:, rvs]) .* sqrt (1 - sim. s^ 2 )
253
-
254
250
nextlevelsamples = copy (samples)
251
+ to_standard_normal_space! (inputs, nextlevelsamples)
252
+
253
+ means = Matrix {Float64} (nextlevelsamples[:, rvs]) .* sqrt (1 - sim. s^ 2 )
255
254
nextlevelsamples[:, rvs] = randn (size (means)) .* sim. s .+ means
256
255
257
256
to_physical_space! (inputs, nextlevelsamples)
You can’t perform that action at this time.
0 commit comments