tests/testthat/tests_power.R

context("power")

test_that("test it",{
  times<-1:10
  timescales<-1:10
  values<-matrix(rep(complex(modulus=1,argument=2*pi*c(0:9)/10),times=10),10,10)
  ttsobj<-tts(times,timescales,values)
  res<-power(ttsobj)
  expect_equal(res$timescales,timescales)
  expect_equal(res$power,rep(1,length(timescales)))
})

Try the wsyn package in your browser

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

wsyn documentation built on June 19, 2021, 1:07 a.m.