https://github.com/cran/pracma
Revision 392ae21a013fb3f518e8f9eb8efb458a55a2eca2 authored by HwB on 09 April 2011, 00:00:00 UTC, committed by Gabor Csardi on 09 April 2011, 00:00:00 UTC
1 parent 162b332
Raw File
Tip revision: 392ae21a013fb3f518e8f9eb8efb458a55a2eca2 authored by HwB on 09 April 2011, 00:00:00 UTC
version 0.3-0
Tip revision: 392ae21
polycnv.R
##
##  p o l y c n v . R  Test suite
##


polycnv <- pracma::polycnv

identical(polycnv(c(0.5), c(2, 4, 8)), c(1, 2, 4))
identical(polycnv(c(2.5, 1.5, 0.5), c(2)), c(5, 3, 1))
identical(polycnv(c(1, 1, 1), c(0, 1, 1, 1)), c(1, 2, 3, 2, 1))
identical(polycnv(c(1, 0, 0), c(0, 0, 1)), c(1, 0, 0))
back to top