functiongetNumberOfOccurences
Returns number of occurences of e in a given vector v
Extends from TransiEnt.Basics.Icons.Function.
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
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | e | Search for e | |
| Real[:] | v | Real vector | |
| Real | eps | 0 | Element e is equal to a element v[i] of vector v if abs(e-v[i]) <= eps |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | result | number of occurrences of e; result=0, if not found |