Struct pineappl::subgrid::SubgridParams
source · [−]pub struct SubgridParams { /* private fields */ }
Expand description
Subgrid creation parameters for subgrids that perform interpolation.
Implementations
sourceimpl SubgridParams
impl SubgridParams
sourcepub fn set_q2_bins(&mut self, q2_bins: usize)
pub fn set_q2_bins(&mut self, q2_bins: usize)
Sets the number of bins for the $Q^2$ axis.
sourcepub fn set_q2_max(&mut self, q2_max: f64)
pub fn set_q2_max(&mut self, q2_max: f64)
Sets the upper limit of the $Q^2$ axis.
sourcepub fn set_q2_min(&mut self, q2_min: f64)
pub fn set_q2_min(&mut self, q2_min: f64)
Sets the lower limit of the $Q^2$ axis.
sourcepub fn set_q2_order(&mut self, q2_order: usize)
pub fn set_q2_order(&mut self, q2_order: usize)
Sets the interpolation order for the $Q^2$ axis.
sourcepub fn set_reweight(&mut self, reweight: bool)
pub fn set_reweight(&mut self, reweight: bool)
Sets the reweighting parameter.
sourcepub fn set_x_bins(&mut self, x_bins: usize)
pub fn set_x_bins(&mut self, x_bins: usize)
Sets the number of bins for the $x$ axes.
sourcepub fn set_x_order(&mut self, x_order: usize)
pub fn set_x_order(&mut self, x_order: usize)
Sets the interpolation order for the $x$ axes.
Trait Implementations
sourceimpl Clone for SubgridParams
impl Clone for SubgridParams
sourcefn clone(&self) -> SubgridParams
fn clone(&self) -> SubgridParams
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SubgridParams
impl Debug for SubgridParams
sourceimpl Default for SubgridParams
impl Default for SubgridParams
sourceimpl<'de> Deserialize<'de> for SubgridParams
impl<'de> Deserialize<'de> for SubgridParams
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<&SubgridParams> for ExtraSubgridParams
impl From<&SubgridParams> for ExtraSubgridParams
sourcefn from(subgrid_params: &SubgridParams) -> Self
fn from(subgrid_params: &SubgridParams) -> Self
Converts to this type from the input type.
sourceimpl Serialize for SubgridParams
impl Serialize for SubgridParams
Auto Trait Implementations
impl RefUnwindSafe for SubgridParams
impl Send for SubgridParams
impl Sync for SubgridParams
impl Unpin for SubgridParams
impl UnwindSafe for SubgridParams
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more