OpendTect-6_4  6.4
nladataprep.h
Go to the documentation of this file.
1 #ifndef nladataprep_h
2 #define nladataprep_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: A.H. Bril
9  Date: May 2005
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "nlamod.h"
16 #include "nladesign.h"
17 
18 class BinIDValueSet;
19 class PosVecDataSet;
20 
26 {
27 public:
29  : bvs_(bvs), targetcol_(tc) {}
30 
31  void removeUndefs(bool targetonly=false);
32  void limitRange(const Interval<float>&);
33 
34  struct BalanceSetup
35  {
37  : nrclasses(0), nrptsperclss(0), noiselvl(0.01) {}
38  int nrclasses, nrptsperclss;
39  float noiselvl;
40  };
41  void balance(const BalanceSetup&);
43 
44 protected:
45 
48 
49  void addVecs(BinIDValueSet&,int,float,
50  const Interval<float>*);
51 
52 };
53 
54 
55 #endif
#define mExpClass(module)
Definition: commondefs.h:160
int targetcol_
Definition: nladataprep.h:47
float noiselvl
Definition: nladataprep.h:39
Definition: nladataprep.h:34
Prepare data for usage in NLA training.
Definition: nladataprep.h:25
int nrptsperclss
Definition: nladataprep.h:38
NLADataPreparer(BinIDValueSet &bvs, int tc)
Definition: nladataprep.h:28
A Pos::IdxPairValueSet with BinIDs.
Definition: binidvalset.h:23
Data set consisting of data vectors.
Definition: posvecdataset.h:30
BinIDValueSet & bvs_
Definition: nladataprep.h:46
BalanceSetup()
Definition: nladataprep.h:36

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