GetDistFromNearestAssignedCells: GetDistFromNearestAssignedCells

View source: R/CELESTA_functions.R

GetDistFromNearestAssignedCellsR Documentation

GetDistFromNearestAssignedCells

Description

Get distance from nearest assigned cells

Usage

GetDistFromNearestAssignedCells(
  cell_nb_in_bandwidth,
  cell_nb_dist,
  current_cell_type_assignment,
  cell_type_num,
  unassigned_cells,
  assigned_cells,
  round
)

Arguments

cell_nb_in_bandwidth

the cells located within a bandwidth to cell c

cell_nb_dist

the distance of each cell to cell c within a bandwidth

current_cell_type_assignment

the current cell type assignments (number_cells x total_rounds)

cell_type_num

the cell types associated with the current round

unassigned_cells

cells not assigned a cell type for each round and iteration

assigned_cells

cells with an assigned cell type

round

the current round

Value

the distance to the nearest assigned cells


plevritis-lab/CELESTA documentation built on Jan. 30, 2023, 3:32 p.m.