smfishHmrf.hmrfem: smfishHmrf.hmrfem

Description Usage Arguments Value

View source: R/smfishHmrf.hmrfem.R

Description

HMRF for single variate normal distribution

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
smfishHmrf.hmrfem(
  y,
  neighbors,
  numnei,
  blocks,
  beta = 0.5,
  mu,
  sigma,
  err = 1e-04,
  maxit = 20,
  verbose
)

Arguments

y

gene expression matrix

neighbors

adjacency matrix between cells

numnei

an array of number of neighbors per cell

blocks

a list of cell colors for deciding the order of cell update

beta

the beta to try (smoothness parameter)

mu

an array of cluster mean

sigma

an array of cluster standard deviation

err

the error that is allowed between successive iterations

maxit

maximum number of iterations

verbose

TRUE or FALSE

Value

A list of prob, new mu, and new sigma after iterations finish


smfishHmrf documentation built on Jan. 13, 2021, 12:54 p.m.