conv/many suite: convert (m)any seismic data format(s)

◆ samplesinbin() [1/2]

unsigned int CompletenessBins::samplesinbin ( const libtime::TRelativeTime  dt) const

number of samples to be expected in a bin

Parameters
dtsampling interval
Returns
number of samples in this bin

Definition at line 139 of file completenessbins.cc.

References binsize().

Referenced by completeness().

140 {
141  libtime::TRelativeTime binsize=this->binsize();
142  unsigned int nsamples=binsize/dt;
143  nsamples = nsamples > 0 ? nsamples : 1;
144  return(nsamples);
145 } // unsigned int
libtime::TRelativeTime binsize() const
Here is the call graph for this function:
Here is the caller graph for this function: