R/SRM_OPTIMIZER_INTERNAL_COMPUTE_INCREMENT.R

Defines functions SRM_OPTIMIZER_INTERNAL_COMPUTE_INCREMENT

## File Name: SRM_OPTIMIZER_INTERNAL_COMPUTE_INCREMENT.R
## File Version: 0.04

SRM_OPTIMIZER_INTERNAL_COMPUTE_INCREMENT <- function(grad, infomat,
    diagonal=FALSE)
{
    if (!diagonal){
        I0 <- SRM_GINV(x=infomat)
        incr <- as.vector(I0 %*% grad)
    } else {
        incr <- grad / diag(infomat)
    }
    return(incr)
}

Try the srm package in your browser

Any scripts or data that you put into this service are public.

srm documentation built on Nov. 3, 2022, 5:06 p.m.