Nothing
#' trapezoidal.rule
#'
#' Trapezoidal rule for numerical integration of a function f over a threshold
#'
#' @param f Function to be integrated
#' @param step Distance between points for integration
#' @param y Threshold
trapezoidal.rule<-function(f,step,y){
f.y<-f[(f>=y)]
integral<-(sum(f.y)+sum(f.y[-c(1,length(f.y))]))*(step/2)
return(integral)}
#' @noRd
#' @keywords internal
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.