OpendTect-6_4  6.4
probdenfuncdraw.h
Go to the documentation of this file.
1 #ifndef probdenfuncdraw_h
2 #define probdenfuncdraw_h
3 
4 /*
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Bert
9  Date: Jan 2010
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 
14 */
15 
16 #include "algomod.h"
17 #include "probdenfunc.h"
18 
19 
25 {
26 public:
27 
29  : pdf_(p) { reset(); }
30  ~ProbDenFuncDraw();
31  void reset();
32 
33  inline int size() const { return vals_.size(); }
34  float value(int,bool redraw_if_used=true) const;
35  inline int useCount( int i ) const { return usecount_[i]; }
36 
37  const ProbDenFunc& pdf() const { return pdf_; }
38  const TypeSet<float>& vals() const { return vals_; }
39 
40 protected:
41 
42  const ProbDenFunc& pdf_;
45 
46  void reDraw();
47 
48 };
49 
50 
51 #endif
#define mExpClass(module)
Definition: commondefs.h:160
TypeSet< int > usecount_
Definition: probdenfuncdraw.h:44
Base class for Probability Density Functions.
Definition: probdenfunc.h:31
ProbDenFuncDraw(const ProbDenFunc &p)
Definition: probdenfuncdraw.h:28
const ProbDenFunc & pdf_
Definition: probdenfuncdraw.h:42
const TypeSet< float > & vals() const
Definition: probdenfuncdraw.h:38
Stores one draw of a probability density function.
Definition: probdenfuncdraw.h:24
const ProbDenFunc & pdf() const
Definition: probdenfuncdraw.h:37
int useCount(int i) const
Definition: probdenfuncdraw.h:35
int size() const
Definition: probdenfuncdraw.h:33
TypeSet< float > vals_
Definition: probdenfuncdraw.h:43

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