Quetzal-CoaTL
The Coalescence Template Library
Loading...
Searching...
No Matches
landscape_quantities.hpp
1// Copyright 2021 Arnaud Becheler <abechele@umich.edu>
2
3/*********************************************************************** * This program is free software; you can
4 *redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free
5 *Software Foundation; either version 2 of the License, or * (at your option) any later version. *
6 * *
7 ***************************************************************************/
8
9#ifndef __LANDSCAPE_QUANTITIES_H_INCLUDED__
10#define __LANDSCAPE_QUANTITIES_H_INCLUDED__
11
12#include <iostream>
13#include <type_traits>
14#include <units/base_dimension.h>
15#include <units/isq/si/prefixes.h>
16#include <units/quantity.h>
17#include <units/quantity_io.h>
18#include <units/unit.h>
19
20using namespace units;
21using namespace units::isq;
22
23namespace quetzal::units
24{
28template <typename T = double> using habitability = units::dimensionless<units::one, ranged_representation<T, 0, 1>>;
29
30struct generation : named_unit<generation, "generation">
31{
32};
33
37template <typename T = double> using growth_rate = units::dimensionless<percent> / units::dim_time;
38
39} // namespace quetzal::units
40#endif
Compile-time unit quantities for coalescence.
Definition units.hpp:30
units::dimensionless< percent >/units::dim_time growth_rate
Percentage change of a specific variable within a specific time period.
Definition landscape_quantities.hpp:37
units::dimensionless< units::one, ranged_representation< T, 0, 1 > > habitability
The extent to which a local habitat is suitable to a species.
Definition landscape_quantities.hpp:28
Definition landscape_quantities.hpp:31