R/max_rates_ph.R

Defines functions max_rates_ph

#' max_rates_ph
#'
#' Calculate the maximum velocities / peak height
#'
#' @param x vector of trace data
#'
#' @return vector containing the peak %
#' @export
#' @importFrom baseline baseline
#' @examples
#' data(ca_flux)
#' dat <- max_rates_ph(ca_flux$Mean1)
max_rates_ph <- function(x) {
  mvs <- max_rates(x)
  ph <- peak_height(x)
  rates <- mvs$velocity.up / ph
  return(rates)
}
VanAndelInstitute/cardiocyte documentation built on July 17, 2020, 8:27 p.m.