add comments, fix some things. TODO: comment tests, finish computeWerDists, test it
[epclust.git] / epclust / tests / testthat / test.wavelets.R
CommitLineData
d9bb53c5 1context("wavelets discrete & continuous")
0fe757f7 2
d9bb53c5
BA
3test_that("curvesToContribs behave as expected",
4{
5 curvesToContribs(...)
6})
7
8test_that("computeWerDists output correct results",
9{
10 nbytes = 8
11 endian = "little"
12
13 # On two identical series
14 serie = rnorm(212, sd=5)
15 synchrones = cbind(serie, serie)
16 dists = computeWerDists(synchrones, nbytes,endian,verbose=TRUE,parll=FALSE)
17 expect_equal(dists, matrix(0.,nrow=2,ncol=2))
18
19 # On two constant series
20 # TODO:...
21})