OpendTect-6_4  6.4
variogramcomputers.h
Go to the documentation of this file.
1 #ifndef variogramcomputers_h
2 #define variogramcomputers_h
3 /*+
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: Arnaud Huck
8  Date: Mar 2012
9  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "generalmod.h"
15 #include "gendefs.h"
16 
17 template <class T> class Array2D;
18 class BufferStringSet;
19 class DataPointSet;
20 
22 {
23 public:
24 
25  HorVariogramComputer(DataPointSet& dpset, int size,
26  int cid, int range, int fold,
27  BufferString& errmsg,
28  bool msgiserror );
29  ~HorVariogramComputer();
30 
31  Array2D<float>* getData() const;
32  Array2D<float>* getXaxes() const;
33  BufferStringSet* getLabels() const;
34 
35  bool isOK() const { return dataisok_; }
36 
37 protected:
41 
42  bool dataisok_;
43 
44  bool compVarFromRange(DataPointSet& dpset, int size,
45  int cid, int range, int fold,
46  BufferString& errsmg,
47  bool msgiserror );
48 };
49 
50 
52 {
53 public:
54 
55  VertVariogramComputer(DataPointSet& dpset,int,
56  int step,int range,
57  int fold, int nrgroups,
58  BufferString& errmsg,
59  bool msgiserror );
60  ~VertVariogramComputer();
61 
62  Array2D<float>* getData() const;
63  Array2D<float>* getXaxes() const;
64  Array2D<float>* getStd() const;
65  Array2D<od_int64>* getFold() const;
66  BufferStringSet* getLabels() const;
67 
68  bool isOK() const { return dataisok_; }
69 
70 protected:
76 
77  bool dataisok_;
78 
79  bool compVarFromRange(DataPointSet& dpset,int colid,
80  int step,int range,int fold,
81  int nrgroups,
82  BufferString& errmsg,
83  bool msgiserror);
84 
85  struct MDandRowID
86  {
87  MDandRowID( double md=0, int rowid=0 )
88  : md_(md)
89  , rowid_(rowid) {};
90 
91  double md_;
92  int rowid_;
93 
94  bool operator>( MDandRowID challenger ) const
95  { return md_ > challenger.md_; }
96  bool operator==( MDandRowID challenger ) const
97  { return md_ == challenger.md_; }
98  };
99 };
100 
101 #endif
#define mExpClass(module)
Definition: commondefs.h:160
Definition: variogramcomputers.h:85
Set of data points with group selection.
Definition: datapointset.h:48
Array2D< float > * axes_
Definition: variogramcomputers.h:72
Array2D< float > * variogramstds_
Definition: variogramcomputers.h:73
Array2D< od_int64 > * variogramfolds_
Definition: variogramcomputers.h:74
bool dataisok_
Definition: variogramcomputers.h:42
MDandRowID(double md=0, int rowid=0)
Definition: variogramcomputers.h:87
Set of BufferString objects.
Definition: bufstringset.h:28
bool isOK() const
Definition: variogramcomputers.h:68
Definition: variogramcomputers.h:51
bool operator>(MDandRowID challenger) const
Definition: variogramcomputers.h:94
double md_
Definition: variogramcomputers.h:89
BufferStringSet * variogramnms_
Definition: variogramcomputers.h:75
Definition: variogramcomputers.h:21
Array2D ( Subclass of ArrayND ) is a two dimensional array.
Definition: arraynd.h:131
BufferStringSet * variogramnms_
Definition: variogramcomputers.h:40
bool isOK() const
Definition: variogramcomputers.h:35
int rowid_
Definition: variogramcomputers.h:92
bool dataisok_
Definition: variogramcomputers.h:77
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
Array2D< float > * variogramvals_
Definition: variogramcomputers.h:38
Array2D< float > * axes_
Definition: variogramcomputers.h:39
Array2D< float > * variogramvals_
Definition: variogramcomputers.h:71
int size() const
Definition: datapointset.h:159
bool operator==(MDandRowID challenger) const
Definition: variogramcomputers.h:96

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019