
8- 12 Agilent B1500 User’s Guide, Edition 7
Built-in Programming Tool
Built-in Functions
log(A) Returns the logarithm (base e) of the expression A.
If A=0, -Overflow is returned with
the status “Arithmetic error”.
If A is a negative value, the logarithm of the absolute value is returned with the
status “Arithmetic erro
r”.
Example
B=log(A)
Data type A: numeric, B: numeric. Or A: vector, B: vector.
mavg(A,B) Returns the moving average value of data in the express
ion A. B specifies how
many data to use for the average. The moving average at the index number n is
defined as follows.
When n ≤ r
When r < n ≤ N-r
When N-r < n
where,
x
n
: moving average of A for the index number n
x
i
: A value for the index number i
r : B value
N : number of sweep steps or number of samples
If A contains some invalid values, the invalid v
alues are ignored
for the calculation.
For subordinate sweep, the first index number of each primary sweep is always 1.
Example
C=mavg(A,B)
Data type A: vector or numeric, B: numeric, C: vector.
[
Q
U1
Q
3
L Q
U
1
[
L
Commenti su questo manuale