functionMyNormalize
Calculate normalized vector such that length = 1 and prevent zero-division for zero vector and return only value at requested index
Extends from Modelica.Icons.Function (Icon for functions).
Information
Copyright © 2018
ATA ENGINEERING, INC.
ALL RIGHTS RESERVED
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real[:] | v | Real vector | |
| Integer | ind | Index of output vector to return |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | result | Input vector v normalized to length=1, at index provided |