test_that("labelSwitchingAlign correctly aligns de-noised parameters",
{
+ set.seed(32)
N <- 30 #number of matrices
d_K_list <- list(c(2,2), c(5,3))
for (i in 1:2)
test_that("labelSwitchingAlign correctly aligns noisy parameters",
{
+ set.seed(32)
N <- 30 #number of matrices
d_K_list <- list(c(2,2), c(5,3))
for (i in 1:2)
test_that("on input of sufficient size, β/||β|| is estimated accurately enough",
{
+ set.seed(42)
n <- 100000
d <- 2
K <- 2
test_that("HungarianAlgorithm provides the correct answer on various inputs",
{
+ set.seed(42)
for (n in c(2,3,10,50))
{
for (repetition in 1:3)
#auxiliary to test diagonality
.computeMuCheckDiag = function(X, Y, K, jd_method, β_ref)
{
+ set.seed(99)
d <- ncol(X)
#TODO: redundant code, same as computeMu() main method. Comments are stripped
M3 <- .Moments_M3(X,Y)
test_that("'jedi' and 'uwedge' joint-diagonalization methods return a correct matrix",
{
+ set.seed(99)
n <- 10000
d_K <- list( c(2,2), c(5,3), c(20,13) )