pub struct DensityProfile {
pub coordinate: Vec<f64>,
pub density: Vec<f64>,
}Expand description
Number density along one cell axis.
let (xyz, edge) = seams::diamond8();
let mut system = seams::System::new()?;
system.set_ortho(&xyz, edge, edge, edge)?;
let rho = system.density(&seams::DensityOptions { bins: 2, ..Default::default() })?;
assert_eq!(rho.coordinate.len(), rho.density.len());Fields§
§coordinate: Vec<f64>Bin centers, angstroms.
density: Vec<f64>Number density.
Trait Implementations§
Source§impl Clone for DensityProfile
impl Clone for DensityProfile
Source§impl Debug for DensityProfile
impl Debug for DensityProfile
Source§impl PartialEq for DensityProfile
impl PartialEq for DensityProfile
impl StructuralPartialEq for DensityProfile
Auto Trait Implementations§
impl Freeze for DensityProfile
impl RefUnwindSafe for DensityProfile
impl Send for DensityProfile
impl Sync for DensityProfile
impl Unpin for DensityProfile
impl UnsafeUnpin for DensityProfile
impl UnwindSafe for DensityProfile
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