| electron_density_uncertainty | R Documentation |
Computes the electron density from the Stark width of a line, as
electron_density(), with its standard uncertainty and confidence
interval, from the standard error of the width and the uncertainty of
the Stark parameter of the line.
electron_density_uncertainty(
width,
width_se = 0,
method = "stark",
stark = NULL,
wavelength = NULL,
temperature = NULL,
reference_width = NULL,
reference_density = 1e+17,
reference_rsd = 0,
tolerance = 0.5,
level = 0.95,
species = NULL
)
width |
The measured Stark full width at half maximum, in nm (see Details). A vector is allowed. |
width_se |
The standard error of |
method |
|
stark |
For |
wavelength |
For |
temperature |
For |
reference_width |
For |
reference_density |
The density of |
reference_rsd |
The relative standard uncertainty of the reference
width: of the Stark parameter of the line ( |
tolerance |
For |
level |
The confidence level of the interval. Default is 0.95. |
species |
For |
The electron density is proportional to (w / w_{ref})^p, where
w is the measured width, w_{ref} the reference width of the
line (its Stark parameter, or the width law of H\alpha), p =
1 for method = "stark" and p = 1 / 0.67823 for method = "halpha". With lognormal errors of w and w_{ref}, the
density is lognormal, with
\sigma_{\ln N_e} = p \sqrt{\ln(1 + u_w^2) + \ln(1 + u_{ref}^2)}
where u_w and u_{ref} are the relative standard
uncertainties of the width and of the reference width. The interval is
N_e e^{\pm z \sigma_{\ln N_e}}, and the relative standard
uncertainty is \sqrt{e^{\sigma^2_{\ln N_e}} - 1}.
The width of H\alpha grows less than linearly with the density, so
its relative uncertainty is amplified about 1.5 times in the density.
The standard error of the width is that of the fit of the line (the
std.error of the width in peak_fit()), or that of replicate
measurements. The uncertainty of the reference width depends on its
source: give it with reference_rsd. The weak dependence of the Stark
width on the temperature is not propagated.
A tibble with one row per width: the width and width_se, the
electron_density (cm^{-3}), its standard uncertainty se, its
relative standard uncertainty rsd, and the lower and upper bounds
of the interval. Pass se to plasma_uncertainty() as
electron_density_se.
electron_density(), plasma_uncertainty(), peak_fit()
# H-alpha width of 0.50 +/- 0.02 nm, with a 10% uncertainty of the width law
electron_density_uncertainty(0.5, width_se = 0.02, method = "halpha", reference_rsd = 0.1)
# a line with a Stark width of 0.012 nm at 1e17 cm-3, known within 20%
electron_density_uncertainty(0.024, width_se = 0.002, reference_width = 0.012,
reference_rsd = 0.2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.