openModeller  Version 1.5.0
EnvCellSet.h
Go to the documentation of this file.
1 /* **************************************
2  * GARP Modeling Package
3  *
4  * **************************************
5  *
6  * Copyright (c), The Center for Research, University of Kansas, 2385 Irving Hill Road, Lawrence, KS 66044-4755, USA.
7  * Copyright (C), David R.B. Stockwell of Symbiotik Pty. Ltd.
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the license that is distributed with the software.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * license.txt file included with this software for more details.
16  */
17 
18 // EnvCellSet.h : Declaration of the CEnvCellSet
19 
20 #ifndef __ENVCELLSET_H_
21 #define __ENVCELLSET_H_
22 
23 #include "EnvCell.h"
24 #include "Utilities.h"
25 
26 // ============================================================================
27 // EnvCellSet
28 // ============================================================================
29 
31 {
32 private:
33  int intCount;
34  int intSize;
36 
37  bool resampled;
38 
39  // bioclim histograms
41 
42 public:
43  EnvCellSet();
44  EnvCellSet(int size);
45  virtual ~EnvCellSet();
46 
47  void initialize(int size);
48 
51 
52  EnvCellSet * resample();
53  void resampleInPlace();
54 
55  int size();
56  int count();
57  int genes();
58 
59  void add(EnvCell * cell);
60  EnvCell * get(int index);
61 };
62 
63 // ============================================================================
64 #endif
void initialize(int size)
Definition: EnvCellSet.cpp:116
BioclimHistogram * getBioclimHistogram()
Definition: EnvCellSet.cpp:163
EnvCell ** objCells
Definition: EnvCellSet.h:35
virtual ~EnvCellSet()
Definition: EnvCellSet.cpp:51
void add(EnvCell *cell)
Definition: EnvCellSet.cpp:154
void resampleInPlace()
Definition: EnvCellSet.cpp:80
int intCount
Definition: EnvCellSet.h:33
BioclimHistogram * histogram
Definition: EnvCellSet.h:40
EnvCellSet * resample()
Definition: EnvCellSet.cpp:100
bool resampled
Definition: EnvCellSet.h:37
int intSize
Definition: EnvCellSet.h:34
void createBioclimHistogram()
Definition: EnvCellSet.cpp:167