Nothing
getCorellation <-
function(dpReferencePeak, dpInputPeak, maxShift)
{
if (nargs()<3)
{
stop('Invalid input parameters count')
}
if (length(dpReferencePeak)!=length(dpInputPeak))
{
stop('dpReferencePeak and dpInputPeak sizes must agree')
}
#evaluate lag by Wong
lag <- FFTcorr( dpInputPeak,dpReferencePeak, maxShift)
aligned <- shift(dpInputPeak,lag)
#get corellation coefficients
corellation <- cor(dpReferencePeak, aligned)
return(corellation)
}
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.