Nothing
## File Name: cdm_calc_increment.R
## File Version: 0.142
cdm_calc_increment <- function( d1, d2, max.increment, eps=1E-10, adj_fac=.98, type=1 )
{
increment <- d1 / ( abs( d2 + eps ) )
increment[ is.na(increment) ] <- 0
#--- vector increment
if (is.vector(increment) ){
increment <- cdm_trim_increment( increment=increment, max.increment=max.increment,
type=type )
}
#--- matrix increment
if (is.matrix(increment) ){
K <- ncol(increment)
for (kk in 1:K){
increment[,kk] <- cdm_trim_increment( increment=increment[,kk],
max.increment=max.increment, type=type)
}
}
#--- adjust maximum increment
max.increment <- max(abs(increment)) / adj_fac
#--- output
res <- list(increment=increment, max.increment=max.increment)
return(res)
}
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.