Nothing
alpha.optim <-
function(A, T, G, cluster, info, maxit=1000){
alpha <- info$alpha
for(i in 1:maxit){
X <- T - alpha * G
T.proj <- X %*% sqrt(solve(diag(diag(t(X) %*% X))))
h.alpha <- criteria(A, T.proj, cluster, info)
h.0 <- criteria(A, T, cluster, info)
if(h.alpha < h.0)
break
else
alpha <- alpha / 2
if(i == maxit){
alpha <- 0
}
}
return(alpha)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.