pub fn degrees_of_freedom(&self) -> usize {
        match self.simulated_degrees_of_freedom {
            DegreesOfFreedom::Particles => 3 * self.size(),
            DegreesOfFreedom::Frozen(frozen) => 3 * self.size() - frozen,
            DegreesOfFreedom::Molecules => 3 * self.molecules().count(),
        }
    }
/// Get the number of degrees of freedom in the system
Get the number of degrees of freedom in the system
Get the number of degrees of freedom in the system
pub fn degrees_of_freedom(&self) -> usize {
        match self.simulated_degrees_of_freedom {
            DegreesOfFreedom::Particles => 3 * self.size(),
            DegreesOfFreedom::Frozen(frozen) => 3 * self.size() - frozen,
            DegreesOfFreedom::Molecules => 3 * self.molecules().count(),
        }
    }
pub fn degrees_of_freedom ( & self ) -> usize { match self . simulated_degrees_of_freedom { DegreesOfFreedom :: Particles => 3 * self . size ( ) , DegreesOfFreedom :: Frozen ( frozen ) => 3 * self . size ( ) - frozen , DegreesOfFreedom :: Molecules => 3 * self . molecules ( ) . count ( ) , } }
Get the number of degrees of freedom in the system
Get the number of degrees of freedom in the system
&self