pub struct StaticStructureFactorDebye { /* private fields */ }Expand description
Debye structure-factor calculator.
Implementations§
Source§impl StaticStructureFactorDebye
impl StaticStructureFactorDebye
Sourcepub fn new(k_values: &[F]) -> Result<Self, ComputeError>
pub fn new(k_values: &[F]) -> Result<Self, ComputeError>
Construct from an explicit array of k magnitudes (Å⁻¹). Must be non-empty.
Sourcepub fn linspace(k_min: F, k_max: F, n: usize) -> Result<Self, ComputeError>
pub fn linspace(k_min: F, k_max: F, n: usize) -> Result<Self, ComputeError>
Convenience: build a linearly-spaced k grid [k_min, k_max] with
n points (inclusive of both endpoints).
pub fn k_values(&self) -> &Array1<F>
Trait Implementations§
Source§impl Clone for StaticStructureFactorDebye
impl Clone for StaticStructureFactorDebye
Source§fn clone(&self) -> StaticStructureFactorDebye
fn clone(&self) -> StaticStructureFactorDebye
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Compute for StaticStructureFactorDebye
impl Compute for StaticStructureFactorDebye
Source§type Output = Vec<StaticStructureFactorDebyeResult>
type Output = Vec<StaticStructureFactorDebyeResult>
Finalized output type.
Source§fn compute<'a, FA: FrameAccess + Sync + 'a>(
&self,
frames: &[&'a FA],
_: (),
) -> Result<Vec<StaticStructureFactorDebyeResult>, ComputeError>
fn compute<'a, FA: FrameAccess + Sync + 'a>( &self, frames: &[&'a FA], _: (), ) -> Result<Vec<StaticStructureFactorDebyeResult>, ComputeError>
Run the analysis.
frames may be empty; implementations that need at
least one frame return ComputeError::EmptyInput. Read moreAuto Trait Implementations§
impl Freeze for StaticStructureFactorDebye
impl RefUnwindSafe for StaticStructureFactorDebye
impl Send for StaticStructureFactorDebye
impl Sync for StaticStructureFactorDebye
impl Unpin for StaticStructureFactorDebye
impl UnsafeUnpin for StaticStructureFactorDebye
impl UnwindSafe for StaticStructureFactorDebye
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more