Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion PRAS.jl/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ uuid = "05348d26-1c52-11e9-35e3-9d51842d34b9"
authors = [
"Surya Chandan Dhulipala <SuryaChandan.Dhulipala@nlr.gov>",
"Srihari Sundar <Hari.Sundar@nlr.gov>",
"Julian Florez <Julian.Florez@nlr.gov>",
"Akrivi Liakopoulou <Akrivi.Liakopoulou@nlr.gov>",
"Abdelrahman Ayad <abdelrahman.ayad@nlr.gov",
"Julian Florez <julianflorez333@gmail.com>",
"Gord Stephen <g.stephen@imperial.ac.uk>"
]
version = "0.9.0"
Expand Down
3 changes: 2 additions & 1 deletion PRASCore.jl/Project.toml
Comment thread
abdelrahman-ayad marked this conversation as resolved.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ authors = [
"Surya Chandan Dhulipala <SuryaChandan.Dhulipala@nlr.gov>",
"Srihari Sundar <Hari.Sundar@nlr.gov>",
"Akrivi Liakopoulou <Akrivi.Liakopoulou@nlr.gov>",
"Julian Florez <Julian.Florez@nlr.gov>",
"Abdelrahman Ayad <abdelrahman.ayad@nlr.gov",
"Julian Florez <julianflorez333@gmail.com>",
"Gord Stephen <g.stephen@imperial.ac.uk>"
]
version = "0.9.0"
Expand Down
8 changes: 4 additions & 4 deletions PRASCore.jl/test/Results/shortfall.jl
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@

region_cvar = CVAR(:energy, result, alpha, r)
region_estimate = result.shortfall_region_samples[r_idx, :];
region_tail_losses = region_estimate[region_estimate .>= quantile(region_estimate, alpha)];
region_tail_losses = region_estimate[region_estimate .> quantile(region_estimate, alpha)];
@test val(region_cvar) ≈ mean(region_tail_losses)
@test stderror(region_cvar) ≈ std(region_tail_losses) / sqrt(length(region_tail_losses))

Expand Down Expand Up @@ -154,7 +154,7 @@ end

ue_cvar = CVAR(:energy, result, alpha)
estimate = result[];
tail_losses = estimate[estimate .>= quantile(estimate, alpha)];
tail_losses = estimate[estimate .> quantile(estimate, alpha)];
@test val(ue_cvar) ≈ mean(tail_losses)
@test stderror(ue_cvar) ≈ std(tail_losses) / sqrt(length(tail_losses))

Expand Down Expand Up @@ -183,7 +183,7 @@ end

region_ue_cvar = CVAR(:energy, result, alpha, r)
region_estimate = result[r];
region_tail_losses = region_estimate[region_estimate .>= quantile(region_estimate, alpha)];
region_tail_losses = region_estimate[region_estimate .> quantile(region_estimate, alpha)];
@test val(region_ue_cvar) ≈ mean(region_tail_losses)
@test stderror(region_ue_cvar) ≈ std(region_tail_losses) / sqrt(length(region_tail_losses))

Expand Down Expand Up @@ -240,7 +240,7 @@ end

regionperiod_cvar = CVAR(:energy, result, alpha, r, t)
regionperiod_estimate = result[r, t];
regionperiod_tail_losses = regionperiod_estimate[regionperiod_estimate .>= quantile(regionperiod_estimate, alpha)];
regionperiod_tail_losses = regionperiod_estimate[regionperiod_estimate .> quantile(regionperiod_estimate, alpha)];
@test val(regionperiod_cvar) ≈ mean(regionperiod_tail_losses)
@test stderror(regionperiod_cvar) ≈ std(regionperiod_tail_losses) / sqrt(length(regionperiod_tail_losses))

Expand Down
2 changes: 1 addition & 1 deletion PRASFiles.jl/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ authors = [
"Surya Chandan Dhulipala <SuryaChandan.Dhulipala@nlr.gov>",
"Srihari Sundar <Hari.Sundar@nlr.gov>",
"Akrivi Liakopoulou <Akrivi.Liakopoulou@nlr.gov>",
"Julian Florez <Julian.Florez@nlr.gov",
"Julian Florez <julianflorez333@gmail.com>",
"Gord Stephen <g.stephen@imperial.ac.uk>"
]
version = "0.9.0"
Expand Down
Loading