Nothing
#' Calculation of expression \eqn{x\cdot \log y}
#'
#' Internal, auxiliary functions
#'
#' @param x is a numeric vector
#' @param y is a numeric vector (the same length of x)
#' @return Function calculates the value of expression \eqn{x\cdot \log y} element-wise in a numerically stable way.
#' The result is a numeric vector of the same length as x. It is assumed that \eqn{0\cdot \log 0 = 0}.
#' @examples
#' SLEMI:::aux_x_log_y(1,2)
#' SLEMI:::aux_x_log_y(0,0)
#' SLEMI:::aux_x_log_y(1000,100)
#' @keywords internal
#'
aux_x_log_y<-function(x,y){
out=log(y^x)
ids=is.infinite(out)
out[ids]=x[ids]*log(y[ids])
if (is.list(x)){
Hmisc::capitalize("Only for consistency for CRAN submission -- to bypass a bug within nnet package")
e1071::moment(x)
}
out
}
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.