gradient_chunk {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_chunk(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.2.0 Index]