openModeller  Version 1.5.0
bioclim_histogram.hh
Go to the documentation of this file.
1 
36 #ifndef _BIOCLIM_HISTOGRAM_HH_
37 #define _BIOCLIM_HISTOGRAM_HH_
38 
39 #include <openmodeller/om.hh>
40 
41 #define HIST_BOX_RESOLUTION 0.01
42 #define BIOCLIM_LEVEL_RESOLUTION 0.005
43 #define BIOCLIM_MAX_LEVEL 0.2
44 
45 #define MAX_ENV_LAYERS 256
46 
47 // ===========================================================================
48 // Declaration and Implementation of class BioclimHistogram
49 // ===========================================================================
50 class BioclimHistogram
51 {
52 public:
55 
56  int resamples() const;
57 
58  void initialize(const OccurrencesPtr& occs);
59 
60  void getBioclimRange(Scalar prediction, int layerIndex,
61  Scalar& minCutLevel, Scalar& maxCutLevel) const;
62 
63 private:
64  void reset();
65 
67 
68  int _matrix[2][MAX_ENV_LAYERS][256];
69  int _depend[2];
70 
71  // bioclim histogram
72  double * _upperLevels;
73  double * _lowerLevels;
74 };
75 
76 /****************************************************************/
77 
78 #endif
79 
double Scalar
Type of map values.
Definition: om_defs.hh:39
void getBioclimRange(Scalar prediction, int layerIndex, Scalar &minCutLevel, Scalar &maxCutLevel) const
#define MAX_ENV_LAYERS
int _matrix[2][MAX_ENV_LAYERS][256]
void initialize(const OccurrencesPtr &occs)