Skip to contents

A constructor for the `SimulationObject` class, which initializes the object with the specified background and optional state components.

Usage

SimulationObject(
  background,
  state_env = NULL,
  state_target_suitability = NULL,
  state_target_realised = NULL,
  effort = NULL,
  detect = NULL,
  report = NULL
)

Arguments

background

A `SpatRaster` object representing the background raster data.

state_env

Optional. A `SpatRaster` object representing the environmental state. Default is `NULL`.

state_target_suitability

Optional. A `SpatRaster` object representing the target suitability state. Default is `NULL`.

state_target_realised

Optional. A `SpatRaster` object representing the realised target state. Default is `NULL`.

effort

Optional. A data frame or spatial object representing the sampling effort. Default is `NULL`.

detect

Optional. A data frame or spatial object representing the detection events. Default is `NULL`.

report

Optional. A data frame or spatial object representing the reporting events. Default is `NULL`.

Value

An object of class `SimulationObject`.

Examples

if (FALSE) { # \dontrun{
background <- terra::rast(matrix(0, 500, 500))
sim_obj <- SimulationObject(background)
} # }