R/AccessC_Sums.R

#### compute all block sums in gram matrix
#### from their we could get the cost matrix
SumsBlock_Gaussian <- function(geno, delta){
	nRow <- length(geno)
       
	A <- .C("sumsBlock_Gaussian", 
			x_i= as.double(geno),
			n= as.integer(nRow), 
			Sums= double(nRow*nRow),
			delta= as.double(delta), 
			PACKAGE="KernSeg.light")
	return(A)
}

Try the KernSeg package in your browser

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

KernSeg documentation built on May 2, 2019, 5:26 p.m.