Struct pineappl::subgrid::ExtraSubgridParams
source · [−]pub struct ExtraSubgridParams { /* private fields */ }
Expand description
Extra grid creation parameters when the limits for x1
and x2
are different.
Implementations
sourceimpl ExtraSubgridParams
impl ExtraSubgridParams
sourcepub const fn reweight2(&self) -> bool
pub const fn reweight2(&self) -> bool
Returns whether reweighting is enabled for the x2
axis or not.
sourcepub fn set_reweight2(&mut self, reweight2: bool)
pub fn set_reweight2(&mut self, reweight2: bool)
Sets the reweighting parameter for the x2
axis.
sourcepub fn set_x2_bins(&mut self, x_bins: usize)
pub fn set_x2_bins(&mut self, x_bins: usize)
Sets the number of bins for the x2
axes.
sourcepub fn set_x2_max(&mut self, x_max: f64)
pub fn set_x2_max(&mut self, x_max: f64)
Sets the upper limit of the x2
axes.
sourcepub fn set_x2_min(&mut self, x_min: f64)
pub fn set_x2_min(&mut self, x_min: f64)
Sets the lower limit of the x2
axes.
sourcepub fn set_x2_order(&mut self, x_order: usize)
pub fn set_x2_order(&mut self, x_order: usize)
Sets the interpolation order for the x2
axes.
Trait Implementations
sourceimpl Default for ExtraSubgridParams
impl Default for ExtraSubgridParams
sourceimpl<'de> Deserialize<'de> for ExtraSubgridParams
impl<'de> Deserialize<'de> for ExtraSubgridParams
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 ExtraSubgridParams
impl Serialize for ExtraSubgridParams
Auto Trait Implementations
impl RefUnwindSafe for ExtraSubgridParams
impl Send for ExtraSubgridParams
impl Sync for ExtraSubgridParams
impl Unpin for ExtraSubgridParams
impl UnwindSafe for ExtraSubgridParams
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