transfer_objective_func: Calculate the objective function

Description Usage Arguments Value

View source: R/data_transfer.R

Description

G(H, Λ, b; Wref):= \|X -(H Wref^TΛ + 1 d^T)\|_F^2

Usage

1
transfer_objective_func(X, W, H, lambd, b)

Arguments

X

An ncells-by-ngenes gene expression matrix

W

An ngenes-by-r reference low dimensional factor matrix

H

A factor loading matrix of size ncells-by-r

lambd

A numeric vecor of the scaling

b

A numeric shift vector of size p (ngenes).

Value

numeric scalar, the value of the objective function


pengminshi/cFIT documentation built on July 11, 2021, 11:12 p.m.