R/reg_data.R

Defines functions reg_data

Documented in reg_data

reg_data <-
function(W, theta, eta, M, m, pos_num) {	
	N <- length(theta);
	a <- 1/(M - m);
	b <- -m/(M - m);
	W <- W - (2 * eta * (a^2));
	theta <- theta + eta*a*(2*b*(N - 1) - 2*pos_num + 1);	
	diag(W) <- 0;	
	res <- list(W = W, theta = theta);
	return (res);
}

Try the COSNet package in your browser

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

COSNet documentation built on Nov. 8, 2020, 8:12 p.m.