create_grid: Creat A Grid

Description Usage Arguments Details Value Examples

Description

create_grid creates a grid from the given set of values.

Usage

1
create_grid(grid_size, n_evidence)

Arguments

grid_size

a numeric vector of the form c(nrows, ncolumns) which gives the size of the grid in x and y direction.

n_evidence

a number specifing the amount of evidence in the grid.

Details

The user can specify how big the grid is and how much evidence will be placed in the grid. The function first creates a grid that is completely empty. The evidence is sampled and added to the grid at random. In a last step a wall is being built around the grid.

Value

A matrix containing a grid.

Examples

1
create_grid(grid_size = c(10, 10), n_evidence = 5)

Tabea123/FindMyCat documentation built on June 5, 2019, 7:56 a.m.