-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpredPars.R
66 lines (36 loc) · 1.54 KB
/
predPars.R
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
predPars <- function(input, output, session) {
out <- reactive({
if (input$inactv_model == "Bigelow") {
list(model = "Bigelow",
D_R = input$bigelow_D, z = input$bigelow_z,
temp_ref = input$bigelow_ref_temp,
N0 = input$bigelow_N0)
} else if (input$inactv_model == "Peleg") {
list(model = "Peleg",
k_b = input$peleg_k, n = input$peleg_n,
temp_crit = input$peleg_tempcrit,
N0 = input$bigelow_N0)
} else if (input$inactv_model == "Mafart") {
list(model = "Mafart",
delta_ref = input$mafart_delta, z = input$mafart_z,
temp_ref = input$mafart_ref_temp, p = input$mafart_p,
N0 = input$mafart_N0)
} else if (input$inactv_model == "Geeraerd") {
list(model = "Geeraerd",
D_R = input$geeraerd_D, z = input$geeraerd_z,
N_min = input$geeraerd_Nmin,
temp_ref = input$geeraerd_ref_temp, N0 = input$geeraerd_N0,
C_c0 = input$geeraerd_Cc0)
} else if (input$inactv_model == "Arrhenius") {
list(model = "Arrhenius",
k_ref = input$arrhenius_k,
Ea = input$arrhenius_Ea,
temp_ref = input$arrhenius_reftemp,
N0 = input$arrhenius_N0)
} else {
NULL
}
})
print(out)
return(out)
}