useDynLib(odpc, .registration=TRUE)
importFrom("Rcpp", "evalCpp")
importFrom("stats", "var", "fitted")
importFrom("graphics","plot")
importFrom("methods","is")
importFrom("forecast", "auto.arima", "forecast")
importFrom("parallel", "stopCluster", "makeCluster", "detectCores", "parLapply")
importFrom("doParallel","registerDoParallel")
importFrom("foreach","foreach","%dopar%", "%:%")
importFrom("MASS","ginv")
export(odpc)
export(components_odpcs)
export(plot.odpc)
export(forecast.odpcs)
export(cv.odpc)
export(crit.odpc)
export(crit.sparse_odpc)
S3method("plot", "odpc")
S3method("fitted", "odpc")
S3method("print", "odpc")
S3method("print", "odpcs")
S3method("fitted", "odpcs")
S3method("forecast", "odpcs")
