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

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