1 #ifndef valseriestracker_h 2 #define valseriestracker_h 31 virtual const char* type() = 0;
33 virtual bool isOK()
const;
40 virtual bool track() = 0;
45 virtual float quality()
const {
return 1; }
71 const char*
type() {
return sType(); }
72 static const char*
sType() {
return "EventTracker"; }
80 static const char** sEventNames();
84 virtual bool isOK()
const;
113 void allowAmplitudeSignChange(
bool);
117 bool isAmplitudeSignChangeAllowed()
const;
119 bool snap(
float threshold);
125 void useSimilarity(
bool yn);
126 bool usesSimilarity()
const;
127 void normalizeSimilarityValues(
bool yn);
128 bool normalizesSimilarityValues()
const;
130 void setUseAbsThreshold(
bool abs);
138 bool useAbsThreshold()
const;
140 void setAmplitudeThreshold(
float th);
142 float amplitudeThreshold()
const;
147 void setAllowedVariance(
float v);
149 float allowedVariance()
const;
156 void setSimilarityThreshold(
float th);
157 float similarityThreshold()
const;
159 void setSnapToEvent(
bool);
160 bool snapToEvent()
const;
177 bool& hasloopskips,
float& troughampl)
const;
178 bool findMaxSimilarity(
int nrtests,
int step,
int nrgracetests,
179 float& res,
float& maxsim,
180 bool& flatstart)
const;
181 bool isTargetValueAllowed()
const;
205 static const char* sKeyPermittedRange();
206 static const char* sKeyValueThreshold();
207 static const char* sKeyValueThresholds();
208 static const char* sKeyAllowedVariance();
209 static const char* sKeyAllowedVariances();
210 static const char* sKeyUseAbsThreshold();
211 static const char* sKeySimWindow();
212 static const char* sKeySimThreshold();
213 static const char* sKeyNormSimi();
214 static const char* sKeyTrackByValue();
215 static const char* sKeyTrackEvent();
216 static const char* sKeyCompareMethod();
217 static const char* sKeyAttribID();
218 static const char* sKeySnapToEvent();
219 static const char* sKeyAllowSignChg();
#define mExpClass(module)
Definition: commondefs.h:160
TypeSet< float > allowedvars_
Definition: valseriestracker.h:189
Definition: valseriestracker.h:74
bool dosnap_
Definition: valseriestracker.h:197
bool usesimilarity_
Definition: valseriestracker.h:194
Interval< float > similaritywin_
Definition: valseriestracker.h:191
float seeddepth_
Definition: valseriestracker.h:202
virtual bool usePar(const IOPar &par)
Definition: valseriestracker.h:48
float getRangeStep() const
Definition: valseriestracker.h:90
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:188
float targetvalue_
Definition: valseriestracker.h:58
float allowedvar_
Definition: valseriestracker.h:188
const char * type()
Definition: valseriestracker.h:71
virtual void fillPar(IOPar &par) const
Definition: valseriestracker.h:47
static const char * sType()
Definition: valseriestracker.h:72
const ValueSeries< float > * targetvs_
Definition: valseriestracker.h:55
Base class for a tracker that tracks something (e.g. min, max, a certain value)++ from one ValueSerie...
Definition: valseriestracker.h:26
#define mDeclareEnumUtils(enm)
Some utilities surrounding the often needed enum <-> string table.
Definition: enums.h:258
FixedString None()
Definition: keystrs.h:90
float sourcedepth_
Definition: valseriestracker.h:53
float findExtreme(const FloatMathFunction &, bool minima, float x1, float x2, float tol=1e-5)
float ampthreshold_
Definition: valseriestracker.h:186
virtual bool isOK() const
Definition: valseries.h:41
bool normalizesimi_
Definition: valseriestracker.h:195
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
virtual float quality() const
Definition: valseriestracker.h:45
Event in value series.
Definition: valseriesevent.h:40
const ValueSeries< float > * sourcevs_
Definition: valseriestracker.h:52
Interface to a series of values.
Definition: odmemory.h:17
virtual float targetDepth() const
Definition: valseriestracker.h:44
Event finder in gate.
Definition: valseriesevent.h:65
virtual ~ValSeriesTracker()
Definition: valseriestracker.h:30
Tracker that tracks Min/Max & Zero crossings between valueseries.
Definition: valseriestracker.h:66
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:175
float quality() const
Definition: valseriestracker.h:163
bool allowamplsignchg_
Definition: valseriestracker.h:199
TypeSet< float > ampthresholds_
Definition: valseriestracker.h:187
int seedsize_
Definition: valseriestracker.h:203
bool useabsthreshold_
Definition: valseriestracker.h:190
CompareMethod comparemethod_
Definition: valseriestracker.h:185
float targetdepth_
Definition: valseriestracker.h:56
const ValueSeries< float > * seedvs_
Definition: valseriestracker.h:201
float compareampl_
Definition: valseriestracker.h:196
float quality_
Definition: valseriestracker.h:198
CompareMethod
Definition: valseriestracker.h:74
int targetsize_
Definition: valseriestracker.h:57
float rangestep_
Definition: valseriestracker.h:192
void setRangeStep(float step)
Definition: valseriestracker.h:89
Type
Definition: valseriesevent.h:26
VSEvent::Type evtype_
Definition: valseriestracker.h:183
int sourcesize_
Definition: valseriestracker.h:54
Interval< float > permrange_
Definition: valseriestracker.h:184
virtual float targetValue() const
Definition: valseriestracker.h:43
float similaritythreshold_
Definition: valseriestracker.h:193