linear2d_system {ARGOS} | R Documentation |

## Linear 2D System

### Description

Simulates a two-dimensional damped oscillator with linear dynamics and optional noise.

### Usage

```
linear2d_system(n, init_conditions, dt, snr = Inf)
```

### Arguments

`n` |
Number of time points (rounded to the nearest integer). |

`init_conditions` |
Initial conditions as a numeric vector of length 2. |

`dt` |
Time step between observations. |

`snr` |
Signal-to-noise ratio (in dB). Use Inf for no noise. |

### Details

This function simulates a two-dimensional damped oscillator with linear dynamics. It uses the specified time step and initial conditions to compute the system's state over time. If a non-Infinite SNR is provided, Gaussian noise is added to the system.

### Value

A numeric matrix representing the system's state over time. Each row corresponds to a time point, and each column represents a variable.

### Examples

```
# Simulate a 2D linear system with 100 time points and no noise
data <- linear2d_system(n = 100, init_conditions = c(-1, 1), dt = 0.01, snr = Inf)
```

[Package

*ARGOS*version 0.1.1 Index]