OpenZGY/C++ API and Internals (ALPHA)
Access seismic data stored in ZGY format.
Public Member Functions | Static Public Attributes | List of all members
InternalZGY::LodMostFrequent< T, SkipNaN, SkipZero > Class Template Reference

Most frequent value. More...

Public Member Functions

operator() (T s0, T s1, T s2, T s3, T s4, T s5, T s6, T s7, int, int, int)
 

Static Public Attributes

static const LodAlgorithm algorithm = LodAlgorithm::DecimateSkipNaN
 

Detailed Description

template<typename T, bool SkipNaN, bool SkipZero>
class InternalZGY::LodMostFrequent< T, SkipNaN, SkipZero >

Most frequent value.

Return the value that occurs most frequently in the input. If there is a tie, return the first one. NaN or 0 are returned if and only if all inputs have this value. If the input is a mix of 0 and NaN only, the result is 0.

Since there are tests for equality, this algorithm probably only makes sense for integral data.


The documentation for this class was generated from the following file: