R/QS_Weights.R

Defines functions QS_Weights

#' QS_Weights
#' 
#' QS_WEIGHTS, from HAC() function
#'  
#' @keywords internal
#' @noRd

QS_Weights <- function(x){
    argQS <- 6*pi*x/5
    w1 <- 3/(argQS^2)
    w2 <- (sin(argQS)/argQS)-cos(argQS)
    wQS <- w1*w2
    wQS[wQS == 0] <- 1
    return(wQS)
}

Try the MultiHorizonSPA package in your browser

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

MultiHorizonSPA documentation built on April 6, 2021, 9:06 a.m.