Compute sample rate statistics from a vector of sampling times. |
||
Syntax |
Mean, Std = SampleRate(Time, Scale) |
|
Arguments |
Name |
Description |
Time |
A vector of real data containing sampling times. |
|
Scale (optional) |
A scale factor used as a divisor for the time values. (Default 1.0) |
|
Outputs |
Name |
Description |
Mean |
The mean of the scaled time interval reciprocals, which is a measure of average sampling frequency. |
|
Std |
The standard deviation of the scaled time interval reciprocals. |
|
Example |
Find the statistics for the time vector [0, 1, 1.8, 2.8, 4, ] |
|
|
Syntax |
|
|
mean, std = SampleRate([0,1,1.8,2.8,4], 1000) |
|
|
Results |
|
|
mean = 1020.8 std = 148.8 |