OpendTect  6.6
nladesign.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 "bufstringset.h"
15 #include "typeset.h"
16 
17 
29 {
30 public:
31  NLADesign() { clear(); }
32  ~NLADesign() { clear(); }
33  NLADesign( const NLADesign& sd )
34  { *this = sd; }
35  NLADesign& operator =( const NLADesign& sd )
36  {
37  if ( this != &sd )
38  {
39  inputs_ = sd.inputs_;
40  outputs_ = sd.outputs_;
41  hiddensz_ = sd.hiddensz_;
42  classification_ = sd.classification_;
43  }
44  return *this;
45  }
46 
47  inline void clear()
48  {
49  inputs_.setEmpty(); outputs_.setEmpty();
50  hiddensz_.setEmpty(); hiddensz_ += 0;
51  classification_ = false;
52  }
53 
54  inline bool isSupervised() const
55  { return outputs_.size(); }
56 
57  static inline int finalNrHiddenNodes( int usrsz, int nrinp )
58  {
59  if ( usrsz < 1 || mIsUdf(usrsz) )
60  {
61  usrsz = nrinp / 2;
62  if ( usrsz < 1 )
63  usrsz = 1;
64  }
65  return usrsz;
66  }
67 
72 
73 };
74 
75 
NLADesign::hiddensz_
TypeSet< int > hiddensz_
Definition: nladesign.h:70
NLADesign::finalNrHiddenNodes
static int finalNrHiddenNodes(int usrsz, int nrinp)
Definition: nladesign.h:57
BufferStringSet
Set of BufferString objects.
Definition: bufstringset.h:26
NLADesign::isSupervised
bool isSupervised() const
Definition: nladesign.h:54
NLADesign::classification_
bool classification_
Definition: nladesign.h:71
mIsUdf
#define mIsUdf(val)
Use mIsUdf to check for undefinedness of simple types.
Definition: undefval.h:289
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
NLADesign::NLADesign
NLADesign(const NLADesign &sd)
Definition: nladesign.h:33
typeset.h
NLADesign::~NLADesign
~NLADesign()
Definition: nladesign.h:32
NLADesign::clear
void clear()
Definition: nladesign.h:47
bufstringset.h
NLADesign::NLADesign
NLADesign()
Definition: nladesign.h:31
NLADesign::outputs_
BufferStringSet outputs_
Definition: nladesign.h:69
NLADesign
Simple description of NLA design, viewed from user's perspective.
Definition: nladesign.h:29
NLADesign::inputs_
BufferStringSet inputs_
Definition: nladesign.h:68
StrmOper::clear
void clear(std::ios &)
TypeSet< int >

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