# [−][src]Struct lhapdf::PdfSet

`pub struct PdfSet { /* fields omitted */ }`

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]

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" 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" 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.

## Blanket Implementations

### `impl<T, U> TryFrom<U> for T where    U: Into<T>, `[src]

#### `type Error = Infallible`

The type returned in the event of a conversion error.

### `impl<T, U> TryInto<U> for T where    U: TryFrom<T>, `[src]

#### `type Error = <U as TryFrom<T>>::Error`

The type returned in the event of a conversion error.