Rev 671 | Rev 720 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 671 | Rev 697 | ||
---|---|---|---|
Line 30... | Line 30... | ||
30 | Q_ASSERT(minValue!=maxValue); |
30 | Q_ASSERT(minValue!=maxValue); |
31 | if (value<minValue) return 0.; |
31 | if (value<minValue) return 0.; |
32 | if (value>maxValue) return 1.; |
32 | if (value>maxValue) return 1.; |
33 | return (value-minValue) / (maxValue - minValue); |
33 | return (value-minValue) / (maxValue - minValue); |
34 | }
|
34 | }
|
- | 35 | ||
- | 36 | /** @class Phenology phenology submodule.
|
|
- | 37 | @ingroup core
|
|
- | 38 | The Phenology submodule calculates the length of the growing season according to the model of Jolly et al (2005). The calculation
|
|
- | 39 | is performed for species-groups (i.e.: species are lumped together to groups) and a given climate (i.e. worst case: for each ResourceUnit).
|
|
- | 40 | ||
- | 41 | See http://iland.boku.ac.at/phenology for details.
|
|
- | 42 | */
|
|
35 | 43 | ||
36 | /** calculates the phenology according to Jolly et al. 2005.
|
44 | /** calculates the phenology according to Jolly et al. 2005.
|
37 | The calculation is performed for a given "group" and a present "climate".
|
45 | The calculation is performed for a given "group" and a present "climate".
|
38 | */
|
46 | */
|
39 | void Phenology::calculate() |
47 | void Phenology::calculate() |