errorObsBin {SCEPtERbinary} | R Documentation |
Perturbe a set of observational data
Description
The function returns a perturbed object, starting from observational data and a vector of uncertainties.
Usage
errorObsBin(sigma, STAR, parallel=FALSE, corr=c(0,0,0,0,0,0,0))
Arguments
sigma |
a vector of 14 elements containing the uncertainties on observational data. The error on mass and radius must be expressed as relative error. If the errors on the observations of the two stars are identical, it is possible to provide a vector of length 7. |
STAR |
a vector of 18 elements containing the observational data. |
parallel |
logical flag specifying if the computation should be performed in parallel on a multi-core architecture. |
corr |
a vector with the assumed the correlation between corresponding observables of the two stars. Default to zero (no correlations). |
Details
The vector of observations STAR
must contain, in the order:
The effective temperature (in K) of the star.
The logarithm of the surface gravity of the star (in cm s^-2).
The metallicity [Fe/H] of the star.
The value of large frequency separation of the star, divided by the solar value of this quantity.
The value of the frequency of maximum oscillation power of the star, divided by the solar value of this quantity.
The mass (in solar units) of the star.
The radius (in solar unit) of the star.
The vector of the uncertainties on the observation sigma
must
contain the uncertainty on the above quantity. The
uncertainty on the asteroseismic parameters, mass, and radius
must be expressed as relative error.
Value
errorObsBin
returns an object obtained sampling from a
multivariate normal distribution with vector of mean STAR
and
covariance matrix computed
according to the value of corr
.