[−][src]Struct lhapdf::PdfSet
Class for PDF set metadata and manipulation.
Implementations
impl PdfSet
[src]
#[must_use]pub fn new(setname: &str) -> Self
[src]
Constructor from a set name.
pub fn entry(&self, key: &str) -> Option<String>
[src]
Retrieve a metadata string by key name.
pub fn mk_pdfs(&self) -> Vec<Pdf>
[src]
Make all the PDFs in this set.
#[must_use]pub fn uncertainty(
&self,
values: &[f64],
cl: f64,
alternative: bool
) -> PdfUncertainty
[src]
&self,
values: &[f64],
cl: f64,
alternative: bool
) -> PdfUncertainty
Calculate central value and error from vector values with appropriate formulae for this set.
Warning: The values vector corresponds to the members of this PDF set and must be ordered accordingly.
In the Hessian approach, the central value is the best-fit "values[0]" and the uncertainty is given by either the symmetric or asymmetric formula using eigenvector PDF sets.
If the PDF set is given in the form of replicas, by default, the central value is given by the mean and is not necessarily "values[0]" for quantities with a non-linear dependence on PDFs, while the uncertainty is given by the standard deviation.
The argument cl
is used to rescale uncertainties to a particular confidence level (in
percent); a negative number will rescale to the default CL for this set. The default value
in LHAPDF is 100*erf(1/sqrt(2))=68.268949213709
, corresponding to 1-sigma uncertainties.
If the PDF set is given in the form of replicas, then the argument alternative
equal to
true
(default in LHAPDF: false
) will construct a confidence interval from the
probability distribution of replicas, with the central value given by the median.
For a combined set, a breakdown of the separate PDF and parameter variation uncertainties
is available. The parameter variation uncertainties are computed from the last 2*n
members of the set, with n
the number of parameters.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PdfSet
impl !Send for PdfSet
impl !Sync for PdfSet
impl Unpin for PdfSet
impl UnwindSafe for PdfSet
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,