sig_noise | R Documentation |
This function calculates common signal and noise metrics for OpenSpecy
objects.
sig_noise(x, ...)
## Default S3 method:
sig_noise(x, ...)
## S3 method for class 'OpenSpecy'
sig_noise(
x,
metric = "run_sig_over_noise",
na.rm = TRUE,
step = 20,
sig_min = NULL,
sig_max = NULL,
noise_min = NULL,
noise_max = NULL,
abs = T,
...
)
x |
an |
metric |
character; specifying the desired metric to calculate. |
na.rm |
logical; indicating whether missing values should be removed
when calculating signal and noise. Default is |
step |
numeric; the step size of the region to look for the run_sig_over_noise option. |
sig_min |
numeric; the minimum wavenumber value for the signal region. |
sig_max |
numeric; the maximum wavenumber value for the signal region. |
noise_min |
numeric; the minimum wavenumber value for the noise region. |
noise_max |
numeric; the maximum wavenumber value for the noise region. |
abs |
logical; whether to return the absolute value of the result
Options include |
... |
further arguments passed to subfunctions; currently not used. |
A numeric vector containing the calculated metric for each spectrum in the
OpenSpecy
object.
restrict_range()
data("raman_hdpe")
sig_noise(raman_hdpe, metric = "sig")
sig_noise(raman_hdpe, metric = "noise")
sig_noise(raman_hdpe, metric = "sig_times_noise")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.