Returns number of occurences of e in a given vector v. This is a modified version of Modelica.Math.Vectors.find.
(no remarks)
(no remarks)
(no remarks)
(no remarks)
(no remarks)
(no remarks)
(no validation necessary)
(none)
Model created by Carsten Bode (c.bode@tuhh.de), Nov 2018
function getNumberOfOccurences extends TransiEnt.Basics.Icons.Function; input Real e "Search for e"; input Real v[:] "Real vector"; input Real eps(min = 0) = 0 "Element e is equal to a element v[i] of vector v if abs(e-v[i]) <= eps"; output Integer result "number of occurrences of e; result=0, if not found"; end getNumberOfOccurences;