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

TypeNameDefaultDescription
Booleancontinuous (from PartialInterpolator)false=true if interpolation is continuous, otherwise discontinuous
IntegernFuture (from PartialInterpolator)0Number of buffer values required in the future (=0 for causal filters)
IntegernPast (from PartialInterpolator)0Number of buffer values required in the past
RealvarianceFactor (from PartialInterpolator)1The factor by which the variance will be scaled, if this interpolation is used
Integersmoothness (from PartialInterpolator)0The smoothness of the interpolation. =0: continuous, =1: continuous and differentiable, ...
RealsuggestedSamplePeriod (from PartialInterpolatorWithKernel)0The appropriate sample period for this filter
Real[:]Tlinspace(0, 0.2, 101)Time vector
Real[:]stepFirstOrder.kernel(T)Step response data
Real[:]dstepcat(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

NameDescription
kernelKernel for a tabulated step response
kernelVarianceFunction to be integrated for the varianceFactor
der_kernel_offsetDerivative of kernel for a tabulated step response
trapzIntegral of a time signal using trapezium rule

Revisions

Date Description
Sep. 4, 2015
DLR logo Initial version implemented by A. Klöckner, F. v.d. Linden, D. Zimmer, M. Otter.
DLR Institute of System Dynamics and Control