neg_loglikelihood_chunk: Calculate negative penalized likelihood, used for calls to...

Description Usage Arguments Value

View source: R/BFA.R

Description

The penalized likelihood function: f(A,Z,β,O,U) = ∑ [lnP(B;A,Z,U,V,β,γ)]_ij - ε_1 * ||A||_2^2 - ε_2 * ||Z||_2^2 - ε_3*||β||_2^2 - ε_2 * ||γ||_2^2

Usage

1
neg_loglikelihood_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

Scalar penalized likelihood


quon-titative-biology/scBFA documentation built on March 24, 2020, 7:30 p.m.