OpendTect  7.0
Public Member Functions | Protected Attributes | List of all members
WeightedClassCounter< T > Class Template Reference

Finds out which class is the best from a series of weighted data points. More...

Public Member Functions

 WeightedClassCounter (bool canbeneg=true)
 
 ~WeightedClassCounter ()
 
void add (int val, T wt=1)
 
void clear ()
 
int result () const
 
bool valid () const
 

Protected Attributes

bool canbeneg_
 
TypeSet< T > * wts_
 

Detailed Description

template<class T>
class WeightedClassCounter< T >

Finds out which class is the best from a series of weighted data points.

<>

Constructor & Destructor Documentation

◆ WeightedClassCounter()

template<class T >
WeightedClassCounter< T >::WeightedClassCounter ( bool  canbeneg = true)
inline

◆ ~WeightedClassCounter()

template<class T >
WeightedClassCounter< T >::~WeightedClassCounter ( )
inline

Member Function Documentation

◆ add()

template<class T >
void WeightedClassCounter< T >::add ( int  val,
wt = 1 
)
inline

◆ clear()

template<class T >
void WeightedClassCounter< T >::clear ( )
inline

◆ result()

template<class T >
int WeightedClassCounter< T >::result
inline

◆ valid()

template<class T >
bool WeightedClassCounter< T >::valid ( ) const
inline

Member Data Documentation

◆ canbeneg_

template<class T >
bool WeightedClassCounter< T >::canbeneg_
protected

◆ wts_

template<class T >
TypeSet<T>* WeightedClassCounter< T >::wts_
protected

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