Commit 0c7b5199 authored by thomas.forbriger's avatar thomas.forbriger

[WP] (issue7): sketch solution to first problem

parent e9dca5b6
......@@ -32,10 +32,10 @@ From the man page of the pow-function:
- If y is 0, the result is 1.0 (even if x is a NaN).
We potentially face two problems:
- When using the zero offset (least offset) trace as a reference for offset
1 When using the zero offset (least offset) trace as a reference for offset
dependent scaling (as is the default), a division by zero happens in
subroutine mpcfactors.
- Zero offset traces may come with an mpc-scaling factor equal to zero. This
2 Zero offset traces may come with an mpc-scaling factor equal to zero. This
means, the trace should be down-scaled to a straight line in any case.
The current concept of trace scaling does this by leaving the sample values
of the trace as they are, by using a viewport for the trace according to
......@@ -45,4 +45,11 @@ We potentially face two problems:
factor). This problem is present, even is the zero offset trace is not used
as a reference.
Solutions:
1 The first problem is resolved by not using a zero-offset trace as a
reference. I recommend to make the method of taking the average amplitude in
an offset range the standard in mode 2 and 3. The default range could be
offset zero to a finite upper offset value which must not be smaller then 5
per cent of the largest offset.
----- END OF issue7_refract_catch_zero_offset.txt -----
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment