OpendTect-6_4  6.4
stattype.h
Go to the documentation of this file.
1 #ifndef stattype_h
2 #define stattype_h
3 /*+
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: Bert Bril
8  Date: Sep 2006
9  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "enums.h"
15 #include "algomod.h"
16 
17 namespace Stats
18 {
19 
20  /* One-dimensional statistical properties of value series */
21 enum Type
22 {
29 };
31 
32  /* When resampling a denser sampling */
33 enum UpscaleType
34 {
35  TakeNearest,
36  UseAvg, UseMed, UseRMS, UseMostFreq
37 };
38 mDeclareNameSpaceEnumUtils(Algo,UpscaleType)
39 
40 inline Type typeFor( UpscaleType ut )
41 {
42  return ut == UseAvg ? Average
43  : (ut == UseRMS ? RMS
44  : (ut == UseMostFreq ? MostFreq
45  : Median));
46 }
47 
48 inline UpscaleType upscaleTypeFor( Type st )
49 {
50  return st == Average ? UseAvg
51  : (st == RMS ? UseRMS
52  : (st == MostFreq ? UseMostFreq
53  : (st == Median ? UseMed
54  : TakeNearest)));
55 }
56 
57 
58 }; // namespace Stats
59 
60 
61 #endif
Definition: stattype.h:27
Definition: stattype.h:27
Definition: stattype.h:25
Definition: stattype.h:26
Type
Definition: stattype.h:21
Definition: stattype.h:26
Definition: stattype.h:24
Definition: stattype.h:28
mDeclareNameSpaceEnumUtils(Algo, Type) enum UpscaleType
Definition: stattype.h:30
Definition: stattype.h:24
Definition: stattype.h:25
Definition: stattype.h:25
UpscaleType upscaleTypeFor(Type st)
Definition: stattype.h:48
Statistics.
Definition: array2dinterpol.h:28
Definition: stattype.h:23
Definition: stattype.h:24
Definition: stattype.h:26

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