20 template <
class T>
class ArrayND;
82 inline bool isEmpty()
const {
return samples_.isEmpty(); }
84 void setApproxNrValues(
od_int64 nrsamples,
92 void putData(
const float*,
od_int64 sz);
99 bool calculateRange(
float lowcliprate,
104 static bool calculateRange(
float* vals,
od_int64 nrvals,
112 bool getRange(
float lowcliprate,
float highcliprate,
114 bool getSymmetricRange(
float cliprate,
float midval,
137 DataClipSampler(
int bufsz=10000);
147 const float*
vals()
const {
return vals_; }
149 void report(
IOPar&)
const;
#define mExpClass(module)
Definition: commondefs.h:160
#define od_int64
Definition: plftypes.h:36
int approxstatsize_
Definition: dataclipper.h:122
Interval< float > rg_
Definition: dataclipper.h:158
bool subselect_
Definition: dataclipper.h:124
float sampleprob_
Definition: dataclipper.h:123
bool isEmpty() const
Definition: dataclipper.h:82
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
const float * vals() const
Definition: dataclipper.h:147
Interface to a series of values.
Definition: odmemory.h:17
od_int64 count_
Definition: dataclipper.h:157
void reset()
Definition: dataclipper.h:140
An ArrayND is an array with a given number of dimensions and a size.
Definition: arraynd.h:33
Data clipping sampler.
Definition: dataclipper.h:134
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
const int maxnrvals_
Definition: dataclipper.h:156
Interval< float > absoluterg_
Definition: dataclipper.h:126
LargeValVec< float > samples_
Definition: dataclipper.h:125
float * vals_
Definition: dataclipper.h:155
bool finished_
Definition: dataclipper.h:159
const LargeValVec< float > & statPts() const
Definition: dataclipper.h:118
~DataClipSampler()
Definition: dataclipper.h:138
A DataClipper gets a bunch of data and determines at what value to clip if a certain clip percentage ...
Definition: dataclipper.h:73