.Wavelet.Denoising.thApply

Information

Apply soft or hard thresholding

Interface

function thApply
  input Real u[:] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9} "Input vector";
  input Real th = 5 "Threshold value";
  input Boolean sorh = true "Soft (false) or hard (true) thresholding";
  output Real y[:] = zeros(size(u, 1)) "Vector after thresholding";
end thApply;

Generated at 2024-11-22T19:25:38Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos