.Wavelet.MRA.tuneCoef

Information

This function supports wavelet MRA. After wavelet (multi-level) decomposition, the coefficients are usually tuned in order to change the signal magnitude at different levels. This function is able to freely change the magnitude of the coefficients at each level by multiplying them with a given factor, which could be any real value.

The definition of c[:] and len[:] are the same as in the function wavDec().

Interface

function tuneCoef
  input Real c0[:] = {-0.707, -0.707, -0.707, -0.7069999999999999, -0.707, -0.7069999999999999, 0.707, 0.0, -1.9993959999999997, -1.9993959999999997, 0.49984899999999993, -1.4135729719999994, 3.1805391869999995, 5.6542918879999995, 3.887325672999999} "Original wavelet coefficients of all levels";
  input Integer len[:] = {13, 7, 4, 2, 2} "Lengths of wavelet coefficients for each levels";
  input Real ratio[:] = {1, 0.1, 2, -1} "{rD1, rD2, ..., rDN, rAN}, tuning factors of all levels. ";
  output Real c1[size(c0, 1)] "Tuned wavelet coefficients of all levels";
end tuneCoef;

Generated at 2024-12-21T19:25:56Z by OpenModelicaOpenModelica 1.24.3 using GenerateDoc.mos