Rev 274 | Rev 318 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 274 | Rev 298 | ||
---|---|---|---|
Line 175... | Line 175... | ||
175 | 175 | ||
176 | }
|
176 | }
|
177 | 177 | ||
178 | /** calculates the lightResponse based on a value for LRI and the species lightResponseClass.
|
178 | /** calculates the lightResponse based on a value for LRI and the species lightResponseClass.
|
179 | LightResponse is classified from 1 (very shade inolerant) and 5 (very shade tolerant) and interpolated for values between 1 and 5.
|
179 | LightResponse is classified from 1 (very shade inolerant) and 5 (very shade tolerant) and interpolated for values between 1 and 5.
|
180 | Returns a value between 0..1 |
180 | Returns a value between 0..1
|
- | 181 | @sa http://iland.boku.ac.at/allocation#reserve_and_allocation_to_stem_growth */
|
|
181 | double SpeciesSet::lightResponse(const double lightResourceIndex, const double lightResponseClass) |
182 | double SpeciesSet::lightResponse(const double lightResourceIndex, const double lightResponseClass) |
182 | {
|
183 | {
|
183 | QMutexLocker l(&mMutex); // serialize access to calculations |
184 | QMutexLocker l(&mMutex); // serialize access to calculations |
184 | double low = mLightResponseIntolerant.calculate(lightResourceIndex); |
185 | double low = mLightResponseIntolerant.calculate(lightResourceIndex); |
185 | double high = mLightResponseTolerant.calculate(lightResourceIndex); |
186 | double high = mLightResponseTolerant.calculate(lightResourceIndex); |