Reconstruct a more granular trace of frequency new_sample_freq
based on Nyquist–Shannon sampling theorem with assumption that the frequency of the original trace must not contain frequencies higher than 1/2 of the new_sample_freq
.
1 2 3 4 5 6 7 8 | trace_reconstruct(
avg_trace,
max_trace = NULL,
orig_rate,
new_rate,
h = new_rate,
d
)
|
avg_trace |
A numeric vector that represents the average trace taken in a fixed sampled rate. |
max_trace |
A numeric vector that represents the maximum trace with sample length as |
orig_rate |
A numeric positive integer that is typicall smaller that the frequency of |
new_rate |
A numeric positive integer that is typicall smaller that the frequency of |
h |
A numeric value representing the granularity for numerical differentiation, (f(x+h) - f(x)) / h, must be smaller or equal to the value of |
d |
A numeric integer representing the distance of nearest neighbourhood to take into account in sinc function. Passed into function |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.