OpendTect  6.3
nlacrdesc.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: June 2001
9 ________________________________________________________________________
10 
11 -*/
12 
13 #include "nlamod.h"
14 #include "nladesign.h"
15 #include "dbkey.h"
16 #include "bufstringset.h"
17 #include "iopar.h"
18 #include "enums.h"
19 #include "uistring.h"
20 
21 class DataPointSet;
22 
28 { mODTextTranslationClass(NLACreationDesc);
29 public:
32  NLACreationDesc( const NLACreationDesc& sd )
33  { *this = sd; }
34  NLACreationDesc& operator =(const NLACreationDesc&);
35  void clear();
36 
40  float ratiotst;
44  bool isdirect;
47 
48  inline bool isSupervised() const { return design.isSupervised();}
49 
50  uiString prepareData(const ObjectSet<DataPointSet>&,
51  DataPointSet&) const;
52 
53  enum DataType { Train=0, Test, MCTrain, MCTest };
54  static const char** DataTypeNames();
55  inline static int dpsGroup( DataType dt )
56  { return ((int)dt) + 1; }
57  inline static int dataTypeOf( int dpsgrp )
58  { return (DataType)(dpsgrp - 1); }
59  inline static bool isTrain( DataType dt )
60  { return dt == Train || dt == MCTrain; }
61  inline static bool isMC( DataType dt )
62  { return dt > Test; }
63 
64 };
#define mExpClass(module)
Definition: commondefs.h:157
NLACreationDesc()
Definition: nlacrdesc.h:30
Set of data points with group selection.
Definition: datapointset.h:47
#define mODTextTranslationClass(clss)
Definition: uistring.h:37
BufferStringSet outids
Definition: nlacrdesc.h:41
Simple description of NLA design, viewed from user&#39;s perspective.
Definition: nladesign.h:27
bool isSupervised() const
Definition: nladesign.h:51
void clear(std::ios &)
Definition: uistring.h:88
Set of BufferString objects.
Definition: bufstringset.h:25
Data type.
Definition: datainpspec.h:29
static bool isTrain(DataType dt)
Definition: nlacrdesc.h:59
bool isdirect
Definition: nlacrdesc.h:44
~NLACreationDesc()
Definition: nlacrdesc.h:31
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:53
float ratiotst
Definition: nlacrdesc.h:40
DBKey vdsid
Definition: nlacrdesc.h:39
static int dpsGroup(DataType dt)
Definition: nlacrdesc.h:55
NLACreationDesc(const NLACreationDesc &sd)
Definition: nlacrdesc.h:32
NLADesign design
Definition: nlacrdesc.h:37
bool isSupervised() const
Definition: nlacrdesc.h:48
DataPack & operator=(const DataPack &)
bool doextraction
Definition: nlacrdesc.h:38
Full key to any object in the OpendTect data store.
Definition: dbkey.h:36
Description of how a NLA analysis Feature set is to be created.
Definition: nlacrdesc.h:27
IOPar pars
Extra details.
Definition: nlacrdesc.h:45
static bool isMC(DataType dt)
Definition: nlacrdesc.h:61
static int dataTypeOf(int dpsgrp)
Definition: nlacrdesc.h:57

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