parameter2: Exclusion Criteria-2 of Neighborful Algorithm

Description Usage Arguments Value Examples

Description

Exclusion Criteria-2 used in neighborful algorithm on combinations of neighbors adjoining the selected colony

Usage

1
parameter2(colony, combinations, excluded_colonies, param2_threshold)

Arguments

colony

selected colony by the outer loop of the neighborful algorithm

combinations

combinations of neighbors adjoining the selected colony

excluded_colonies

A numeric vector of indices that are part of excluded colonies

param2_threshold

The numeric value which can be one from 1:8. This exclusion criteria-2 of neighborful algorithm represents the number of adjoing neighbors of the selected colony from colony are excluded by the previous iteration of neighborful algorithm. If the selected colony is surrounded by at least param2_threshold neighbors, then it will be considered as excluded colony by the neighborful algorithm.

Value

If the selected colony passes the exclusion criteria - 2, then a vector of excluded colonies along with the selected colony will be returned. Else, it will return -1.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
middle_colony <- 34
param1_threshold <- 6
param2_threshold <- 2
neighbors_selected_colony <- middle_neighbors(plateformat, middle_colony)
combin_coords <- combn(length(neighbors_selected_colony), param1_threshold)
combinations <- neighbors_selected_colony[(combin_coords[,1])]
parameter2(colony = middle_colony,
           combinations = combinations,
           excluded_colonies = c(2),
           param2_threshold = param2_threshold)

sathishsrinivasank/pinerrordetector documentation built on May 7, 2019, 2:55 a.m.