R/dpca.scores.R

#' Compute scores of a given series \code{X} using dynamic principal components \code{XI}.
#' Procedure can be inverted using \code{\link{dpca.inverse}}
#'
#' @title Compute scores of dynamic principal components
#' @param X series to 'project'
#' @param XI principal components series
#' @return Matrix of scores of \code{X}
#' @seealso \code{\link{dpca.inverse}}, \code{\link{dprcomp}}
#' @references Siegfried Hormann, Lukasz Kidzinski and Marc Hallin
#' Dynamic Functional Principal Component
#' Research report, 2012
# @export
dpca.scores = function(X,XI){
  XI %c% X
}

Try the freqdom package in your browser

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

freqdom documentation built on May 2, 2019, 5:55 p.m.