R/arsmooth.R

Defines functions arsmooth

Documented in arsmooth

arsmooth <-
function(spg, ...){

    if( ! ("spg" %in% class(spg)) )
        return(invisible(spg));

    cix <- ncol(spg):1;

    for(i in 1:nrow(spg)){

        A <- ar(ts(spg[i,cix]), ...);

        smoov <- spg[i,cix] - A$resid;

        spg[i,cix] <- smoov;
    }

    invisible(spg);
}
landmarkacoustics/SoundPoints-R documentation built on May 29, 2019, 9:14 a.m.