R/gdbr_IBS.R

Defines functions gdbr_IBS

Documented in gdbr_IBS

gdbr_IBS <- 
function(gen)
{
  n = nrow(gen)
  p = ncol(gen)
  Sim = diag(1, n, n)
  # similarity distance IBS
  aux = .C("gdbr_IBS", as.integer(as.vector(t(gen))), as.integer(n), as.integer(p), as.double(as.vector(Sim)))[[4]]
  matrix(aux, nrow=n)
}

Try the AssotesteR package in your browser

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

AssotesteR documentation built on May 2, 2019, 3:55 a.m.