.Wavelet.Examples.fileDataMRA

Information

This function carries out the complete wavelet MRA with graphic user interface. The data to be analyzed are to be read from the *.MAT data file that is generated by Dymola. Please note that only the wavelets of types 1, 2 and 3 are possible for MRA. Otherwise running errors will occur. The results are displayed with multiple curves. It is possible to show either the wavelet coefficients at different levels or the signals that are reconstructed with the coefficients of different single levels.

Since simple default values are provided with this function, a direct execution of this function without any extra input parameters will deliver a complete MRA analysis for an example.

Refer to the description of Families for detailed information about the available wavelets.

Interface

function fileDataMRA
  input String fileName = "testSignal2.mat" "The MAT file containing the signal to be analyzed" annotation(
    Dialog(group = "Input data"));
  input String signalName = "y" "The signal name to be analyzed" annotation(
    Dialog(group = "Input data"));
  input Real t0 = 0.0 "Start time of the signal to be analyzed" annotation(
    Dialog(group = "Input data"));
  input Real t1 = 1.0 "End time of the signal to be analyzed" annotation(
    Dialog(group = "Input data"));
  input Real fs = 200.0 "Sampling frequency of the signal for analysis. 
      This is used to generate an equidistant time grid with the expected time step. 
      If fs == 0, the simulation time grid will be used, even if it is none-equidistant.
      Since wavelet analysis has to be done in equidistant time grid, non-equidistant time grids
      usually cause incorrect results." annotation(
    Dialog(group = "Input data"));
  input Records.wavletDefinition wd "Wavelet definition. Note: Only (bi)orthogonal wavelets can be used for MRA. Valid parameters are wavID (<=7), Nd, Nr and range (dMeyer)" annotation(
    Dialog(group = "Input data"));
  input Records.mraParameters mp "Parameters for MRA" annotation(
    Dialog(group = "Input data"));
end fileDataMRA;

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