samc-class {samc}R Documentation

samc class

Description

S4 class to manage SAMC data.

Details

The samc class is used to help ensure that the package is used correctly and to minimize the possibility for users to accidentally produce nonsensical results that may not be obviously incorrect. This class contains the p matrix necessary for all the calculations in the package, and enforces its type so that users are less likely to inadvertently alter it in a way that will cause issues in calculations.

The samc() function is used to create samc-class objects.

The samc-class slots are subject to change, so users should not be using the @ operator to access or change them. Doing so leads to the risk of broken code in the future. Instead, where relevant, the $ operator can be used to get and set components of the class safely. This is a current list of what can be accessed and modified in the class:

Slots

data

Data associated with different components of the P matrix

conv_cache

Convolution cache

model

List containing model info used to build the samc object

source

Information about the data source for the P matrix

map

Used to verify landscape inputs and mapping of vector data

crw_map

Matrix used to map location and direction to edges description

names

Names of the transient states

clumps

Number of discontinuous regions in data

override

Used to prevent accidental use of memory intensive functions

solver

Controls the linear solver used for relevant metrics

threads

Used for multi-threading

.cache

Cached data for performance boosts


[Package samc version 3.2.1 Index]