trace_reconstruct: Reconstruct More Granular Trace Based on Average Trace.

Description Usage Arguments

View source: R/model_helper.R

Description

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.

Usage

1
2
3
4
5
6
7
8
trace_reconstruct(
  avg_trace,
  max_trace = NULL,
  orig_rate,
  new_rate,
  h = new_rate,
  d
)

Arguments

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 max_trace and same sampled rate. Used for fine tuning of the generated trace, or NULL. Default value is NULL.

orig_rate

A numeric positive integer that is typicall smaller that the frequency of avg_trace and max_trace.

new_rate

A numeric positive integer that is typicall smaller that the frequency of avg_trace and max_trace.

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 new_freq. Default value is new_rate.

d

A numeric integer representing the distance of nearest neighbourhood to take into account in sinc function. Passed into function signal::resample.


carlonlv/DataCenterSim documentation built on Jan. 9, 2022, 3:26 p.m.