@@ -533,7 +533,7 @@ analyse_IRSAR.RF<- function(
533
533
# #check whether both curve have the same length, in this case we cannot proceed (sliding
534
534
# #is not allowed)
535
535
if (length(unique(temp.sequence_structure [[" x.max" ]])) == 1 &&
536
- method == " SLIDE" &&
536
+ grepl( " SLIDE" , method ) &&
537
537
(is.null(RF_nat.lim ) & is.null(RF_reg.lim ))) {
538
538
.throw_error(" There is no further sliding space left. All curves have " ,
539
539
" the same length and no limitation was set" )
@@ -724,27 +724,24 @@ analyse_IRSAR.RF<- function(
724
724
temp.sequence_structure [temp.sequence_structure $ protocol.step == " REGENERATED" ," id" ]]]@ data )
725
725
726
726
# #correct of the onset of detection by using the first time value
727
- if (method == " SLIDE" &
727
+ if (grepl( " SLIDE" , method ) & &
728
728
method.control.settings $ correct_onset == TRUE ) {
729
729
RF_reg [,1 ] <- RF_reg [,1 ] - RF_reg [1 ,1 ]
730
730
}
731
731
732
-
733
732
RF_reg.x <- RF_reg [RF_reg.lim [1 ]: RF_reg.lim [2 ],1 ]
734
733
RF_reg.y <- RF_reg [RF_reg.lim [1 ]: RF_reg.lim [2 ],2 ]
735
734
736
-
737
735
# #grep values from natural signal
738
736
RF_nat <- as.data.frame(object @ records [[
739
737
temp.sequence_structure [temp.sequence_structure $ protocol.step == " NATURAL" ," id" ]]]@ data )
740
738
741
- # #correct of the onset of detection by using the first time value
742
- if (method == " SLIDE" &
739
+ # # correct the onset of detection by using the first time value
740
+ if (grepl( " SLIDE" , method ) & &
743
741
method.control.settings $ correct_onset == TRUE ) {
744
742
RF_nat [,1 ] <- RF_nat [,1 ] - RF_nat [1 ,1 ]
745
743
}
746
744
747
-
748
745
# #limit values to fit range (at least to the minimum)
749
746
RF_nat.limited <- RF_nat [min(RF_nat.lim ): max(RF_nat.lim ),]
750
747
@@ -766,7 +763,7 @@ analyse_IRSAR.RF<- function(
766
763
- lambda * x
767
764
)) ^ beta )))
768
765
769
- # #stretched expontial function according to Erfurt et al. (2003)
766
+ # # stretched exponential function according to Erfurt et al. (2003)
770
767
# # + phi.0 >> initial IR-RF flux
771
768
# # + delta.phi >> dose dependent change of the IR-RF flux
772
769
# # + lambda >> exponential parameter
@@ -960,9 +957,6 @@ analyse_IRSAR.RF<- function(
960
957
961
958
# #(1) calculate sum of residual squares using internal Rcpp function
962
959
963
- # pre-allocate object
964
- temp.sum.residuals <- vector(" numeric" , length = t_max.id - t_max_nat.id )
965
-
966
960
# #initialise slide range for specific conditions, namely NULL and "auto"
967
961
if (is.null(vslide_range )) {
968
962
vslide_range <- 0
0 commit comments