Description Usage Arguments Details Value Note Author(s) See Also
This function computes the noise weighted chi2 merit function for template fitting. The model is a stellar template spectrum convolved with a Gaussian or Gauss-Hermitian LOSVD. It is matched to a galaxy spectrum. The galaxy spectrum, the model spectrum and the residuals can be plotted.
1 2 3 4 |
p |
a two-component |
galaxy |
an object of class |
template |
an object of class |
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. |
mask |
a data.frame with two columns |
noise |
a vector along |
plot |
|
verbose |
|
return.fit |
|
sigma.max |
the maximum allowed value for |
... |
Parameters to be passed to |
The value returned by this function does not seem to be a proper chi2 yet.
If return.fit
is FALSE
, only the value of the merit
function is returned. This should be the setting for optimising over
the parameters.
If return.fit
is TRUE
, a list is returned with the
components
L, M |
the coordinates of |
gof |
the value of the merit function |
v, sigma, h3, h4 |
the kinematic parameters used in the computation of the merit function |
lambda, model, residual |
the model spectrum and the residuals
on the wavelength vector of |
mask, noise |
the mask and noise vectors |
lm.fit |
the linear fit for the coefficients of the multiplicative and additive polynomials |
The chi2 is as yet not properly normalized.
Oliver Czoske
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.