OpendTect  7.0
Public Member Functions | Public Attributes | List of all members
DeSpiker< VT, IT > Class Template Reference

Public Member Functions

 DeSpiker (VT maxgrubbs=VT(5))
 
virtual ~DeSpiker ()
 
bool deSpike (VT *, IT sz) const
 fixes all spikes. returns whether any change made More...
 
IT getSpikeIdx (const VT *, IT sz, VT *newvalptr=0) const
 
bool hasSpike (const VT *, IT sz) const
 returns whether there is at least one spike More...
 

Public Attributes

const VT maxgrubbs_
 

Detailed Description

template<class VT, class IT>
class DeSpiker< VT, IT >

<>

Constructor & Destructor Documentation

◆ DeSpiker()

template<class VT , class IT >
DeSpiker< VT, IT >::DeSpiker ( VT  maxgrubbs = VT(5))
inline

◆ ~DeSpiker()

template<class VT , class IT >
virtual DeSpiker< VT, IT >::~DeSpiker ( )
inlinevirtual

Member Function Documentation

◆ deSpike()

template<class VT , class IT >
bool DeSpiker< VT, IT >::deSpike ( VT *  vals,
IT  sz 
) const
inline

fixes all spikes. returns whether any change made

◆ getSpikeIdx()

template<class VT , class IT >
IT DeSpiker< VT, IT >::getSpikeIdx ( const VT *  vals,
IT  sz,
VT *  newvalptr = 0 
) const
inline

returns index of first spike. if provided, will fill newvalptr with suggested replacement value

◆ hasSpike()

template<class VT , class IT >
bool DeSpiker< VT, IT >::hasSpike ( const VT *  vals,
IT  sz 
) const
inline

returns whether there is at least one spike

Member Data Documentation

◆ maxgrubbs_

template<class VT , class IT >
const VT DeSpiker< VT, IT >::maxgrubbs_

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