18 template <
class T>
class ArrayND;
81 inline bool isEmpty()
const {
return samples_.isEmpty(); }
83 void setApproxNrValues(
od_int64 nrsamples,
91 void putData(
const float*,
od_int64 sz);
98 bool calculateRange(
float lowcliprate,
103 static bool calculateRange(
float* vals,
od_int64 nrvals,
111 bool getRange(
float lowcliprate,
float highcliprate,
113 bool getSymmetricRange(
float cliprate,
float midval,
136 DataClipSampler(
int bufsz=10000);
146 const float*
vals()
const {
return vals_; }
148 void report(
IOPar&)
const;
#define mExpClass(module)
Definition: commondefs.h:157
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:51
#define od_int64
Definition: plftypes.h:34
int approxstatsize_
Definition: dataclipper.h:121
Interval< float > rg_
Definition: dataclipper.h:157
bool subselect_
Definition: dataclipper.h:123
float sampleprob_
Definition: dataclipper.h:122
bool isEmpty() const
Definition: dataclipper.h:81
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:53
const float * vals() const
Definition: dataclipper.h:146
Interface to a series of values.
Definition: odmemory.h:15
od_int64 count_
Definition: dataclipper.h:156
void reset()
Definition: dataclipper.h:139
An ArrayND is an array with a given number of dimensions and a size.
Definition: arraynd.h:29
Data clipping sampler.
Definition: dataclipper.h:133
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:38
const int maxnrvals_
Definition: dataclipper.h:155
Interval< float > absoluterg_
Definition: dataclipper.h:125
LargeValVec< float > samples_
Definition: dataclipper.h:124
float * vals_
Definition: dataclipper.h:154
bool finished_
Definition: dataclipper.h:158
const LargeValVec< float > & statPts() const
Definition: dataclipper.h:117
~DataClipSampler()
Definition: dataclipper.h:137
A DataClipper gets a bunch of data and determines at what value to clip if a certain clip percentage ...
Definition: dataclipper.h:71