-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsensitivity_analysis_module.cs
More file actions
66 lines (61 loc) · 1.88 KB
/
sensitivity_analysis_module.cs
File metadata and controls
66 lines (61 loc) · 1.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static SWAT__Toolbox.home_module;
namespace SWAT__Toolbox
{
class sensitivity_analysis_module
{
public static string get_sensitivity_analysis_method(int sensitivity_index)
{
switch (sensitivity_index)
{
case 0:
return "Sobol";
case 1:
return "Fourier Amplitude";
case 2:
return "Random Balance Designs Fourier Amplitude";
case 3:
return "Delta Moment-Independent Measure";
default:
return "Sobol";
}
}
public static string get_sensitivity_analysis_method_code(project current_project)
{
int sensitivity_index = get_sensitivity_analysis_index(current_project);
switch (sensitivity_index)
{
case 0:
return "sobol";
case 1:
return "FAST";
case 2:
return "RBD_FAST";
case 3:
return "DMIM";
default:
return "sobol";
}
}
public static int get_sensitivity_analysis_index(project current_project)
{
switch (current_project.sensivity_settings.sensitivity_method)
{
case "Sobol":
return 0;
case "Fourier Amplitude":
return 1;
case "Random Balance Designs Fourier Amplitude":
return 2;
case "Delta Moment-Independent Measure":
return 3;
default:
return 0;
}
}
}
}