Closed selkamand closed 3 months ago
Can be simplified to
tally1 <- rep(c(0, 0.5, 0, 0.5, 0), c(60L, 1L, 6L, 1L, 15L))
tally2 <- numeric(83)
lsa::cosine(tally1, tally2)
Actually that simplification made the problem easier. Its impossible to calculate the cosine angle between vectors when one of them has 0 magnitude. But the current version of sigstats tests for this so a simple update fixed it