Nothing
# x est le point etudie
# nbclust le nombre de classes sur xj
# mixmod le tableau mixmod pour xj
tik <- function(x = x, nbclust = nbclust, mixmod = mixmod) {
prob = rep(0, times = nbclust)
for (i in 1:nbclust) {
prob[i] = mixmod[i, 1] * dnorm(x, mean = mixmod[i, 2], sd = sqrt(mixmod[i, 3]))
if (is.na(prob[i])) {
message("NA in tik")
prob[i] = 0
}
}
sumprob = sum(prob)
if (sumprob == 0) {
prob[1] = 1
} else{
prob = prob / sumprob
}
return(prob)
}
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.