OpendTect  7.0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
DataClipSampler Class Reference

Data clipping sampler. More...

Public Member Functions

 DataClipSampler (const DataClipSampler &)
 
 DataClipSampler (int bufsz=10000)
 
 ~DataClipSampler ()
 
void add (const float *, od_int64)
 
void add (float)
 
void finish () const
 
Interval< float > getRange (float clipratio) const
 
od_int64 nrVals () const
 
DataClipSampleroperator= (const DataClipSampler &)
 
void report (IOPar &) const
 
void reset ()
 
const float * vals () const
 

Protected Member Functions

void doAdd (float)
 
BufferString getClipRgStr (float) const
 

Protected Attributes

od_int64 count_ = 0
 
bool finished_ = false
 
Stats::RandGengen_
 
int maxnrvals_
 
Interval< float > rg_
 
float * vals_
 

Detailed Description

Data clipping sampler.

<>

Constructor & Destructor Documentation

◆ DataClipSampler() [1/2]

DataClipSampler::DataClipSampler ( int  bufsz = 10000)

◆ DataClipSampler() [2/2]

DataClipSampler::DataClipSampler ( const DataClipSampler )

◆ ~DataClipSampler()

DataClipSampler::~DataClipSampler ( )

Member Function Documentation

◆ add() [1/2]

void DataClipSampler::add ( const float *  ,
od_int64   
)

◆ add() [2/2]

void DataClipSampler::add ( float  )

◆ doAdd()

void DataClipSampler::doAdd ( float  )
protected

◆ finish()

void DataClipSampler::finish ( ) const

◆ getClipRgStr()

BufferString DataClipSampler::getClipRgStr ( float  ) const
protected

◆ getRange()

Interval<float> DataClipSampler::getRange ( float  clipratio) const

◆ nrVals()

od_int64 DataClipSampler::nrVals ( ) const

◆ operator=()

DataClipSampler& DataClipSampler::operator= ( const DataClipSampler )

◆ report()

void DataClipSampler::report ( IOPar ) const

◆ reset()

void DataClipSampler::reset ( )
inline

◆ vals()

const float* DataClipSampler::vals ( ) const
inline

Member Data Documentation

◆ count_

od_int64 DataClipSampler::count_ = 0
protected

◆ finished_

bool DataClipSampler::finished_ = false
protected

◆ gen_

Stats::RandGen& DataClipSampler::gen_
protected

◆ maxnrvals_

int DataClipSampler::maxnrvals_
protected

◆ rg_

Interval<float> DataClipSampler::rg_
protected

◆ vals_

float* DataClipSampler::vals_
protected

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