forked from Marxan-source-code/marxan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
species.hpp
58 lines (49 loc) · 1.22 KB
/
species.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#pragma once
#include <string>
#include <vector>
namespace marxan {
using namespace std;
typedef struct sclumps
{
int clumpid;
double amount;
int occs;
vector<int> head;
} sclumps; /* Clump nodes for species Clump Structure */
typedef struct sspecies
{
int name;
int type;
string sname;
double target;
double prop;
int targetocc;
double spf;
double penalty;
double rUserPenalty;
double amount;
double expected1D, expected2D, variance1D, variance2D;
int occurrence;
double sepdistance;
int sepnum;
int separation;
int clumps;
double target2; // Only clumping species need this
vector<sclumps> head; // needed for clumping species
int richness, offset;
double Zscore1D, Zscore2D;
double probability1D, probability2D;
double ptarget1d, ptarget2d;
}sspecies;
typedef struct sgenspec
{
int type;
int targetocc;
double target;
double target2;
int sepnum;
double sepdistance;
double prop;
double spf;
} sgenspec;
} // namespace marxan