pub struct FrequencyGrid { /* private fields */ }Expand description
Frequency bins [edges[i], edges[i + 1]), spaced linearly or logarithmically.
Implementations§
Source§impl FrequencyGrid
impl FrequencyGrid
pub fn new( f_min: f64, f_max: f64, n_bins: usize, scale: GridScale, ) -> Result<Self, MethodError>
pub fn edges(&self) -> &[f64]
pub fn n_bins(&self) -> usize
Sourcepub fn centres(&self) -> Vec<f64>
pub fn centres(&self) -> Vec<f64>
Bin centres: arithmetic for linear grids, geometric for log grids.
pub fn scale(&self) -> GridScale
Trait Implementations§
Source§impl Clone for FrequencyGrid
impl Clone for FrequencyGrid
Source§fn clone(&self) -> FrequencyGrid
fn clone(&self) -> FrequencyGrid
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FrequencyGrid
impl Debug for FrequencyGrid
Source§impl PartialEq for FrequencyGrid
impl PartialEq for FrequencyGrid
impl StructuralPartialEq for FrequencyGrid
Auto Trait Implementations§
impl Freeze for FrequencyGrid
impl RefUnwindSafe for FrequencyGrid
impl Send for FrequencyGrid
impl Sync for FrequencyGrid
impl Unpin for FrequencyGrid
impl UnwindSafe for FrequencyGrid
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more