Set an interpolation mode
|
By default, AOM uses Null to represent breakpoints in a metric graph, as shown in Figure 1. However, a metric graph with breakpoints is not suitable for reports or presentation. To solve the problem, set the value of Interpolation Mode to 0 or Average to interpolate values. In this way, you can replace the missing metric data and avoid breakpoints.
The value of Interpolation Mode can be Null, 0, or Average.
- Null: Breakpoints are represented by Null by default.
Figure 1 Graph when the value of Interpolation Mode is Null
- 0: Breakpoints are represented by 0.
Figure 2 Graph when the value of Interpolation Mode is 0
- Average: Breakpoints are represented by the average value.
Figure 3 Graph when the value of Interpolation Mode is Average
NOTE: If the value of Interpolation Mode is set to Average, breakpoints will be represented by average values. The following describes how to calculate average values.
A metric graph may have multiple breakpoints. When multiple breakpoints exist, values will be interpolated for these breakpoints from left to right. The following uses the first breakpoint in a graph as an example to describe the method of calculating the average value. This method can also be applied to other breakpoints.
- If the first breakpoint is at the start of a metric graph, the value of the breakpoint is the first valid data from its next point to the right.
For example, if a metric graph has points a, b, c, d, and e, where a = Null, b = Null, c = Null, d = Null, and e = 5, the value of the first breakpoint (that is, point a) is 5.
- If the first breakpoint is in the middle of a metric graph, there are the following two scenarios:
Scenario 1: If the values of the previous and next points of the breakpoint are valid, the value of the breakpoint is the average value of these two points.
For example, if a metric graph has points a, b, c, d, and e, where a = 1, b = Null, c = 3, d = Null, and e = 5, the value of the first breakpoint (that is, point b) is (a + c)/2 = (1 + 3)/2 = 2.
Scenario 2: If the value of the previous point of the breakpoint is valid and the value of its next point is null, the value of the breakpoint is the average value of its previous point and the first valid data from its next point to the right.
For example, if a metric graph has points a, b, c, d, and e, where a = 1, b = Null, c = Null, d = Null, and e = 5, the value of the first breakpoint (that is, point b) is (a + e)/2= (1 + 5)/2 = 3. Because values are interpolated for breakpoints from left to right, the value of the second breakpoint (that is, point c) is (b + e)/2 = (3 + 5)/2 = 4, the value of the third breakpoint (that is, point d) is (c + e)/2 = (4 + 5)/2 = 4.5.
- If the first breakpoint is at the end of a metric graph, the value of the breakpoint is the value of the previous point.
For example, if a metric graph has points a, b, c, d, and e, where a = 1, b = 2, c = 3, d = 4, and e = Null, the value of the first breakpoint (that is, point e) is 4.
- If all points in a metric graph are breakpoints, the values of all these points are still Null, even though you set the value of Interpolation Mode to Average.
For example, if a metric graph has points a, b, c, d, and e, where a = Null, b = Null, c = Null, d = Null, and e = Null, the values of all breakpoints are Null.
|