simulate_spectra {ASICS} | R Documentation

## Simulate a set of spectra

### Description

Simulate a set of spectra based on the default library with shifts

### Usage

    simulate_spectra(
      n.spectra,
      max.shift = 0.02,
      metab.percent = 0.5,
      metab.different = 4,
      add.noise = 0.07,
      mult.noise = 0.09
    )

### Arguments

`n.spectra` | Number of spectra to simulate.
`max.shift` | Maximum shift allowed for artificial deformation of pure spectra (default to 0.02).
`metab.percent` | Percentage of present metabolites in complex spectra (default to 0.5).
`metab.different` | Number of metabolites that are different between each complex spectra (default to 4).
`add.noise, mult.noise` | additive and multiplicative noises. By default, `add.noise = 0.15` and `mult.noise = 0.172`

### Value

A list with a data frame of simulated spectra in columns and a data frame of simulated quantifications.

### Examples

    spectra <- simulate_spectra(n.spectra = 10)

[Package ASICS version 2.6.1 Index]