Skip to content

Commit

Permalink
Updating comment style
Browse files Browse the repository at this point in the history
  • Loading branch information
exfletch committed Jun 7, 2022
1 parent c1cbbfa commit ca06049
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions ideal_response/ideal_response_functions.R
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@

#' Calculate ideal f-W response
#'
#' Once the frequency has been within f_hyst of f_ulco for t_hyst then the system should end f-W
#' and ramp back up
#'
#' @param f_ulco upper limit of continuous operation (the point at which f-W droop should start)
#' @param f_hyst hysteresis frequency value
#' @param t_hyst hysteresis time in seconds
#' @param f_upper frequency droop response upper limit. Default 52Hz in most cases
ideal_response <- function(frequency_data, f_ulco, f_hyst, t_hyst, f_upper){
# f_ulco = upper limit of continuous operation, i.e. the point at which f-W droop should start.
# f_hyst = the hysteresis frequency value and
# t_hyst = the hysteresis time in seconds,
# i.e. once the frequency has been within f_hyst of f_ulco for t_hyst then the system should end f-W and ramp back up.
# f_upper is the frequency droop response upper limit. Default 52Hz in most cases.
frequency_data <- frequency_data[order(frequency_data$ts),]
start_times <- c()
end_times <- c()
Expand Down

0 comments on commit ca06049

Please sign in to comment.