OpendTect-6_4  6.4
nlacrdesc.h
Go to the documentation of this file.
1 #ifndef nlacrdesc_h
2 #define nlacrdesc_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: June 2001
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "nlamod.h"
16 #include "nladesign.h"
17 #include "multiid.h"
18 #include "bufstringset.h"
19 #include "iopar.h"
20 #include "enums.h"
21 #include "uistring.h"
22 
23 class DataPointSet;
24 
30 { mODTextTranslationClass(NLACreationDesc);
31 public:
34  NLACreationDesc( const NLACreationDesc& sd )
35  { *this = sd; }
36  NLACreationDesc& operator =(const NLACreationDesc&);
37  void clear();
38 
42  float ratiotst;
46  bool isdirect;
49 
50  inline bool isSupervised() const { return design.isSupervised();}
51 
52  uiString prepareData(const ObjectSet<DataPointSet>&,
53  DataPointSet&) const;
54 
55  enum DataType { Train=0, Test, MCTrain, MCTest };
56  static const char** DataTypeNames();
57  inline static int dpsGroup( DataType dt )
58  { return ((int)dt) + 1; }
59  inline static int dataTypeOf( int dpsgrp )
60  { return (DataType)(dpsgrp - 1); }
61  inline static bool isTrain( DataType dt )
62  { return dt == Train || dt == MCTrain; }
63  inline static bool isMC( DataType dt )
64  { return dt > Test; }
65 
66 };
67 
68 
69 #endif
#define mExpClass(module)
Definition: commondefs.h:160
NLACreationDesc()
Definition: nlacrdesc.h:32
Set of data points with group selection.
Definition: datapointset.h:48
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
BufferStringSet outids
Definition: nlacrdesc.h:43
Simple description of NLA design, viewed from user&#39;s perspective.
Definition: nladesign.h:28
bool isSupervised() const
Definition: nladesign.h:52
void clear(std::ios &)
Definition: uistring.h:89
Set of BufferString objects.
Definition: bufstringset.h:28
Data type.
Definition: datainpspec.h:31
static bool isTrain(DataType dt)
Definition: nlacrdesc.h:61
MultiID vdsid
Definition: nlacrdesc.h:41
bool isdirect
Definition: nlacrdesc.h:46
~NLACreationDesc()
Definition: nlacrdesc.h:33
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
float ratiotst
Definition: nlacrdesc.h:42
static int dpsGroup(DataType dt)
Definition: nlacrdesc.h:57
NLACreationDesc(const NLACreationDesc &sd)
Definition: nlacrdesc.h:34
NLADesign design
Definition: nlacrdesc.h:39
bool isSupervised() const
Definition: nlacrdesc.h:50
bool doextraction
Definition: nlacrdesc.h:40
Description of how a NLA analysis Feature set is to be created.
Definition: nlacrdesc.h:29
IOPar pars
Extra details.
Definition: nlacrdesc.h:47
DataPointSet & operator=(const DataPointSet &)
Compound key consisting of ints.
Definition: multiid.h:25
static bool isMC(DataType dt)
Definition: nlacrdesc.h:63
static int dataTypeOf(int dpsgrp)
Definition: nlacrdesc.h:59

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