tag:blogger.com,1999:blog-8014727566107878506.post5492906318738921906..comments2023-04-07T04:49:41.328-07:00Comments on Tech Stuff: Clustering - Silhouette, K-means & K-medoidsAnonymoushttp://www.blogger.com/profile/12555542384292146876noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-8014727566107878506.post-27724397688744621662012-01-06T10:18:36.005-08:002012-01-06T10:18:36.005-08:00This was fun, try this in matlab:
kl=@(p,q) p*log...This was fun, try this in matlab:<br /><br />kl=@(p,q) p*log(p/q)+(1-p)*log((1-p)/(1-q))<br />plot(arrayfun(kl,0.5*ones(1,100),0.1*(0.1:.1:10)))<br /><br />It'll plot the KL divergence against a fair coin for a range of p-values. Don't ask me why i did this, because i have no ideadoctorscholls00https://www.blogger.com/profile/00764849527634001846noreply@blogger.com