Comments (6)
Yes it is. Recently (9ec9d84) @jkennel expanded the code to do just this while maintaining computational efficiently. I haven't yet had the time to issue a formal release to CRAN, but will do so soon(ish). In the meantime I encourage you to test out what has been added with the development version:
library(remotes)
install_github('abarbour/psd')
Here's a silly example:
library(psd)
set.seed(1113)
n <- 1000
inp <- rnorm(n) # represents the 'input' to the system
resp <- inp + runif(n) # represents the 'response' of the system
io <- cbind(inp, resp)
p <- pspectrum(io)
# Because io is a multi-dimensional array, 'p' should contain coherence, admittance and phase
layout(matrix(1:3,1))
with(p,{
plot(freq, coh, ylim=c(0,1), type='l', main='Coherence')
plot(freq, Mod(transfer), ylim=c(0,1), type='l', main='Admittance (Gain)')
plot(freq, phase, ylim=pi*c(-1,1), type='l', main='Phase')
})
from psd.
Are you planning on releasing this version to CRAN anytime soon?
background: I am the author of the ForeCA package, which relies heavily on multivariate (cross) spectral density estimation. I have relied previously on the sapa R package, but unfortunately ifultools package -- and thus sapa -- have been removed from CRAN recently. While looking for a good alternative for the excellent sapa::SDF()
I came across psd and this issue in particular. I tried the test code above with the dev version here (1.2.1) and it does exactly what I need for ForeCA (return a 3D complex-valued array with the multivariate cross-spectrum).
from psd.
from psd.
Apparently my grace period ended earlier, so it has been removed already last week (despite ifultools having fixed the issues; its just that the maintainer handover on their side was not handled in time I think, hence CRAN removed it).
the current ForeCA version on github works w/o SDF by just using astsa package; but it seems that psd would be a closer/better replacement of sapa::SDF
so I was checking in if I should release the ForeCA update now, or just wait if psd is getting on CRAN anytime soon.
from psd.
from psd.
Version 2.0 is on CRAN now (https://cran.r-project.org/package=psd). Note that the capabilities are all there, but in the interest of expedience (e.g., to meet the 'kitagawa' package deadline), we released it with with a few known issues that need to be taken care of. These are all minor ones related to methods like plot
, as.data.frame
, etc, as well as some documentation. So look out for minor version bumps soon. Regardless, comments and issues welcome!
from psd.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from psd.