
packageTabulatedStepResponse
A generic filter using a tabulated step response
Extends from Utilities.Interfaces.PartialInterpolatorWithKernel (Generic interpolator interface providing a kernel function).
Information
This interpolation uses a first order filter to smooth the data just as
FirstOrder.
However, the calculation is based on a table interpolation.
Parameters
| Type | Name | Default | Description |
| Boolean | continuous (from PartialInterpolator) | false | =true if interpolation is continuous, otherwise discontinuous |
| Integer | nFuture (from PartialInterpolator) | 0 | Number of buffer values required in the future (=0 for causal filters) |
| Integer | nPast (from PartialInterpolator) | 0 | Number of buffer values required in the past |
| Real | varianceFactor (from PartialInterpolator) | 1 | The factor by which the variance will be scaled, if this interpolation is used |
| Integer | smoothness (from PartialInterpolator) | 0 | The smoothness of the interpolation. =0: continuous, =1: continuous and differentiable, ... |
| Real | suggestedSamplePeriod (from PartialInterpolatorWithKernel) | 0 | The appropriate sample period for this filter |
| Real[:] | T | linspace(0, 0.2, 101) | Time vector |
| Real[:] | step | FirstOrder.kernel(T) | Step response data |
| Real[:] | dstep | cat(1, {(step[2] - step[1])/(T[2] - T[1])}, (step[3:size(T, 1)] - step[1:size(T, 1) - 2])./(T[3:size(T, 1)] - T[1:size(T, 1) - 2]), {(step[end] - step[end - 1])/(T[end] - T[end - 1])}) | |
Contents
| Name | Description |
kernel | Kernel for a tabulated step response |
kernelVariance | Function to be integrated for the varianceFactor |
der_kernel_offset | Derivative of kernel for a tabulated step response |
trapz | Integral of a time signal using trapezium rule |
Revisions
| Date |
Description |
| Sep. 4, 2015 |
|