openModeller
Version 1.4.0
|
00001 /* ************************************** 00002 * GARP Modeling Package 00003 * 00004 * ************************************** 00005 * 00006 * Copyright (c), The Center for Research, University of Kansas, 2385 Irving Hill Road, Lawrence, KS 66044-4755, USA. 00007 * Copyright (C), David R.B. Stockwell of Symbiotik Pty. Ltd. 00008 * 00009 * This program is free software; you can redistribute it and/or modify 00010 * it under the terms of the license that is distributed with the software. 00011 * 00012 * This program is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * license.txt file included with this software for more details. 00016 */ 00017 00018 // EnvCellSet.h : Declaration of the CEnvCellSet 00019 00020 #ifndef __ENVCELLSET_H_ 00021 #define __ENVCELLSET_H_ 00022 00023 #include "EnvCell.h" 00024 #include "Utilities.h" 00025 00026 // ============================================================================ 00027 // EnvCellSet 00028 // ============================================================================ 00029 00030 class EnvCellSet 00031 { 00032 private: 00033 int intCount; 00034 int intSize; 00035 EnvCell ** objCells; 00036 00037 bool resampled; 00038 00039 // bioclim histograms 00040 BioclimHistogram * histogram; 00041 00042 public: 00043 EnvCellSet(); 00044 EnvCellSet(int size); 00045 virtual ~EnvCellSet(); 00046 00047 void initialize(int size); 00048 00049 void createBioclimHistogram(); 00050 BioclimHistogram * getBioclimHistogram(); 00051 00052 EnvCellSet * resample(); 00053 void resampleInPlace(); 00054 00055 int size(); 00056 int count(); 00057 int genes(); 00058 00059 void add(EnvCell * cell); 00060 EnvCell * get(int index); 00061 }; 00062 00063 // ============================================================================ 00064 #endif