gradient: Calculate gradient of the negative log likelihood, used for...

Description Usage Arguments Value

View source: R/BFA.R

Description

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

Usage

1
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


scBFA documentation built on Nov. 8, 2020, 5:24 p.m.