.TransiEnt.Basics.Functions.getNumberOfOccurences

Information

1. Purpose of model

Returns number of occurences of e in a given vector v. This is a modified version of Modelica.Math.Vectors.find.

2. Level of detail, physical effects considered, and physical insight

(no remarks)

3. Limits of validity

(no remarks)

4. Interfaces

(no remarks)

5. Nomenclature

(no remarks)

6. Governing Equations

(no remarks)

7. Remarks for Usage

(no remarks)

8. Validation

(no validation necessary)

9. References

(none)

10. Version History

Model created by Carsten Bode (c.bode@tuhh.de), Nov 2018

Interface

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;

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