R/alphaDivergence.R

alpha.divergence <- function(dist1, dist2)
{	
	warning("Use of alpha.divergence(...) is deprecated!")
	return(alphaDivergence(dist1,dist2))
}

alphaDivergence <-
function(dist1, dist2)
{
	return ( 1-sum(sqrt(dist1*dist2)) )
	
}

Try the pdc package in your browser

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

pdc documentation built on May 2, 2019, 9 a.m.