Description Usage Arguments Details Value Author(s) See Also
View source: R/convolve.spectrum.R
The generic function convolve.spectrum
convolves
spectrum
with a given kernel kern
. The more
user-friendly functions convolve.spectrum.Angstrom
and
convolve.spectrum.velocity
perform convolutions with Gaussian
and Gauss-Hermite kernels in linear and logarithmic (or velocity)
wavelength space, respectively.
1 2 3 4 | convolve.spectrum(spectrum, kern)
convolve.spectrum.velocity(spectrum, p, LOSVD=c("gauss", "gh",
"gauss.hermite"), nsig=8)
convolve.spectrum.Angstrom(spectrum, sigma, nsig=8)
|
spectrum |
a data frame with columns |
kern |
a dataframe with components |
p |
a vector of parameters for building a Gauss-Hermite
kernel. If |
LOSVD |
Shape of the LOSVD to be fit to the spectrum. Defaults to Gaussian but can also be set to a Gauss-Hermite series, to order 4. |
sigma |
the dispersion of the Gaussian kernel. For
|
nsig |
the extent of the Gaussian or Gauss-Hermite kernel in
terms of the parameter |
The function convolve.spectrum
is primarily meant to be called
by convolve.spectrum.velocity
and
convolve.spectrum.Angstrom
, which include building the
respective kernel.
An object of class spectrum
with the same components as the
input spectrum.
Oliver Czoske
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.