R/PoissonLoss.R

##===================================================
## POISSON loss
##===================================================
loss.ll <- function(x, w, noise.var) 
{
	n.nodes <- length(x)
	sum(w - x*log(w + matrix(noise.var,nrow=n.nodes,ncol=1))) 
}
##===================================================

Try the flipflop package in your browser

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

flipflop documentation built on May 2, 2019, 1:02 a.m.