Nothing
generateKPs = function(
numNeeded, baserate,
kappaMin, kappaMax,
precisionMin, precisionMax,
distributionType = 'FLAT',
distributionLength = 100000
) {
kappaDistribution = seq(kappaMin, kappaMax, length = distributionLength)
if (distributionType == 'FLAT') {
#probability for a flat distribution
kappaProbability = NULL
}
else if (distributionType == 'BELL') {
#probability for a bell curve
kappaProbability = stats::dnorm(kappaDistribution, mean = 0.9, sd = 0.1)
}
precisionDistribution = seq(precisionMin, precisionMax, length = 10000)
precisionProbability = NULL
KPs = tryCatch({
KPs = list()
for (i in 1:numNeeded) {
KPs[[length(KPs) + 1]] = genPKcombo(kappaDistribution, kappaProbability, precisionDistribution, precisionProbability, baserate)
}
KPs
},error=function(e){
NULL
})
if(is.null(KPs)){stop("Could not generate a valid set given ranges of kappa and precision")}
return (KPs);
}
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.