gradient_chunk {scBFA} | R Documentation |
Calculate gradient of the negative log likelihood, used for calls to the optim() function.
gradient_chunk(parameters, modelEnv)
parameters |
Vectorized parameter space. |
modelEnv |
Environment variable contains parameter space, and global variables such as N,G,C,detection matrix B, etc |
Vectorized gradient