31 : val_(v), pos_(p), count_(cnt) {}
33 {
return pos_ == spd.
pos_; }
74 void init(
int nrsectors,
int nrparts);
77 {
return (*((*
this)[isect]))[ipart]; }
79 {
return (*((*
this)[isect]))[ipart]; }
83 {
return ((*
this)[isect])->size(); }
84 inline float angle(
int isect,
int bound=0)
const;
85 inline float angle(
int isect,
Angle::Type,
int bound=0)
const;
87 int sector(
float ang)
const;
89 int part(
int isect,
float pos)
const;
102 const float angstep = fullc /
size();
104 return centerang + bound * angstep * .5f;
110 const float ang =
angle( isect, bound );
128 const float fsect =
size() * (usrang / 360);
130 if ( sect >=
size() ) sect = 0;
137 const int nrparts =
nrParts( isect );
139 int prt = (int)fpart;
140 if ( prt<0 ) prt = 0;
141 if ( prt>=nrparts ) prt = nrparts-1;
148 init( nrsect, nrparts );
156 for (
int isect=0; isect<nrsect; isect++ )
160 for (
int ipart=0; ipart<nrparts; ipart++ )
#define mIsUdf(val)
Use mIsUdf to check for undefinedness of simple types.
Definition: undefval.h:287
A circle of data.
Definition: statdirdata.h:55
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:53
float val_
actual angle or a value of interest
Definition: statdirdata.h:36
virtual void erase()
Definition: manobjectset.h:37
Setup setup_
Definition: statdirdata.h:91
Interval< float > usrposrg_
Definition: statdirdata.h:67
int count_
nr data pts contributing (for confidence)
Definition: statdirdata.h:37
Angle::Type angletype_
Definition: statdirdata.h:69
bool isEmpty() const
Definition: odset.h:45
size_type size() const
Definition: objectset.h:50
#define mNINT32(x)
Definition: commondefs.h:45
Set of (small) copyable elements.
Definition: commontypes.h:30
T width(bool allowrev=true) const
Definition: ranges.h:451
#define mUdf(type)
Use this macro to get the undefined for simple types.
Definition: undefval.h:272
float angle0_
Definition: statdirdata.h:68
Part of a data sector.
Definition: statdirdata.h:26
Definition: statdirdata.h:59
Type
Definition: angles.h:27
void getFullCircle(Type typ, T &t)
Definition: angles.h:34
T convert(Type inptyp, T val, Type outtyp)
Definition: angles.h:76
TypeSet< SectorPartData > SectorData
Definition: statdirdata.h:42
Setup()
Definition: statdirdata.h:62
Statistics.
Definition: array2dinterpol.h:28
void init(int nrsectors, int nrparts)
Definition: statdirdata.h:152
int nrParts(int isect) const
Definition: statdirdata.h:82
DirectionalData(int nrsectors=0, int nrparts=0)
Definition: statdirdata.h:146
float pos_
0=center 1=on circle = maximum value
Definition: statdirdata.h:35
#define mClass(module)
Definition: commondefs.h:164
SectorPartData(float v=0, float p=0.5, int cnt=0)
Definition: statdirdata.h:30
int sector(float ang) const
Definition: statdirdata.h:121
ObjectSet where the objects contained are owned by this set.
Definition: manobjectset.h:23
int part(int isect, float pos) const
Definition: statdirdata.h:135
float angle(int isect, int bound=0) const
Definition: statdirdata.h:96
int nrSectors() const
Definition: statdirdata.h:80