[][src]Struct splashsurf_lib::neighborhood_search::NeighborhoodStats

pub struct NeighborhoodStats {
    pub histogram: Vec<usize>,
    pub particles_with_neighbors: usize,
    pub max_neighbors: usize,
    pub avg_neighbors: f64,
}

Stats of a neighborhood list

Fields

histogram: Vec<usize>

A histogram over the count of particle neighbors per particle (e.g. histogram[0] -> count of particles without neighbors, histogram[1] -> count of particles with one neighbor, etc.)

particles_with_neighbors: usize

Number of particles that have neighbors

max_neighbors: usize

The size of the largest neighborhood

avg_neighbors: f64

Average number of neighbors per particle (excluding particles without neighbors)

Trait Implementations

impl Clone for NeighborhoodStats[src]

impl Debug for NeighborhoodStats[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,