R/H.omega.sincos.R

Defines functions H.omega.sincos

Documented in H.omega.sincos

H.omega.sincos <-
function(x, u) {
    n <- length(x)
    d <- length(u)
    y <- rep(x, d)
    w <- rep(u, each=n)
    H <- matrix( NA, n, d*2 )
    H[ , seq(1, d*2, by=2)] <- sin(y*w)
    H[ , seq(2, d*2, by=2)] <- cos(y*w)
    return(H)
}

Try the SSsimple package in your browser

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

SSsimple documentation built on Dec. 7, 2019, 9:06 a.m.