gradient {scBFA}R Documentation

Calculate gradient of the negative log likelihood, used for calls to the optim() function.

Description

Calculate gradient of the negative log likelihood, used for calls to the optim() function.

Usage

gradient(parameters, modelEnv)

Arguments

parameters

Vectorized parameter space.

modelEnv

Environment variable contains parameter space, and global variables such as N,G,C,detection matrix B, etc

Value

Vectorized gradient


[Package scBFA version 1.6.0 Index]