venuss 0.0.1

Venus celestial simulation crate for the MilkyWay SolarSystem workspace
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use sciforge::hub::prelude::biology::population::logistic_growth;

pub struct Population {
    pub species_name: &'static str,
    pub count: f64,
    pub carrying_capacity: f64,
    pub intrinsic_growth_rate: f64,
}

impl Population {
    pub fn growth_rate(&self) -> f64 {
        logistic_growth(
            self.count,
            self.intrinsic_growth_rate,
            self.carrying_capacity,
        )
    }
}