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

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