R/fcab.R

"fcab" <- function(last,nints,yam1,h,x,stdv){
    f <- last*dnorm(h*c(0:nints)+yam1,mean=matrix(rep(x,nints+1),nints+1,length(x),byrow=TRUE),sd=stdv)
    area <- 0.5*h*(2*colSums(f)-f[1,]-f[nrow(f),]) # This is "trap"
    return(area)
  }

Try the ldbounds package in your browser

Any scripts or data that you put into this service are public.

ldbounds documentation built on June 22, 2024, 6:53 p.m.