Nothing
zeroPad <-
function(peak, maxLen)
{
if(!is.vector(peak))
{
stop('!isvector(peak)')
}
if(!is.null(dim(peak)))
{
stop('peak should be a single row vector!')
}
zerosCnt <- maxLen - length(peak)
if(zerosCnt > 0)
{
leftPaddCnt <- floor(zerosCnt /2 )
rightPaddCnt <- zerosCnt - leftPaddCnt
peak <- c(rep(0,leftPaddCnt),peak,rep(0,rightPaddCnt))
}
return(peak)
}
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.