OpendTect  6.6
probdenfuncdraw.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: Bert
8  Date: Jan 2010
9  RCS: $Id$
10 ________________________________________________________________________
11 
12 
13 */
14 
15 #include "algomod.h"
16 #include "probdenfunc.h"
17 
18 
24 {
25 public:
26 
28  : pdf_(p) { reset(); }
30  void reset();
31 
32  inline int size() const { return vals_.size(); }
33  float value(int,bool redraw_if_used=true) const;
34  inline int useCount( int i ) const { return usecount_[i]; }
35 
36  const ProbDenFunc& pdf() const { return pdf_; }
37  const TypeSet<float>& vals() const { return vals_; }
38 
39 protected:
40 
41  const ProbDenFunc& pdf_;
44 
45  void reDraw();
46 
47 };
48 
49 
ProbDenFuncDraw::vals
const TypeSet< float > & vals() const
Definition: probdenfuncdraw.h:37
ProbDenFuncDraw::usecount_
TypeSet< int > usecount_
Definition: probdenfuncdraw.h:43
probdenfunc.h
ProbDenFuncDraw::value
float value(int, bool redraw_if_used=true) const
ProbDenFuncDraw::reDraw
void reDraw()
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
ProbDenFuncDraw::useCount
int useCount(int i) const
Definition: probdenfuncdraw.h:34
ProbDenFuncDraw::pdf_
const ProbDenFunc & pdf_
Definition: probdenfuncdraw.h:41
ProbDenFuncDraw
Stores one draw of a probability density function.
Definition: probdenfuncdraw.h:24
ProbDenFuncDraw::reset
void reset()
ProbDenFuncDraw::~ProbDenFuncDraw
~ProbDenFuncDraw()
ProbDenFunc
Base class for Probability Density Functions.
Definition: probdenfunc.h:31
ProbDenFuncDraw::vals_
TypeSet< float > vals_
Definition: probdenfuncdraw.h:42
ProbDenFuncDraw::pdf
const ProbDenFunc & pdf() const
Definition: probdenfuncdraw.h:36
ProbDenFuncDraw::size
int size() const
Definition: probdenfuncdraw.h:32
ProbDenFuncDraw::ProbDenFuncDraw
ProbDenFuncDraw(const ProbDenFunc &p)
Definition: probdenfuncdraw.h:27
TypeSet< float >

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