Subversion Repositories public iLand

Rev

Rev 1175 | Rev 1177 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1175 Rev 1176
Line 90... Line 90...
90
class SaplingStat
90
class SaplingStat
91
{
91
{
92
public:
92
public:
93
    SaplingStat() { clearStatistics(); }
93
    SaplingStat() { clearStatistics(); }
94
    void clearStatistics();
94
    void clearStatistics();
-
 
95
    /// calculate statistics (and carbon flows) for the saplings of species 'species' on 'ru'.
-
 
96
    /// The 'cohorts_per_area' gives the average cohort density on the RU (avg. cohorts/pixel).
95
    void calculate(const Species *species, ResourceUnit *ru, double cohorts_per_area);
97
    void calculate(const Species *species, ResourceUnit *ru, double cohorts_per_area);
96
    // actions
98
    // actions
97
    void addCarbonOfDeadSapling(float dbh) { mDied++; mSumDbhDied+=dbh;  }
99
    void addCarbonOfDeadSapling(float dbh) { mDied++; mSumDbhDied+=dbh;  }
98
100
99
    // access to statistics
101
    // access to statistics