normalizeToSumN¶
Parameters¶
Parameter label |
I/O type |
Data type |
Mandatory parameter? |
Default value |
---|---|---|---|---|
|
input |
vector |
yes |
N/A |
|
input |
scalar |
no |
1 |
|
output |
vector |
N/A |
N/A |
Functionality¶
Module normalizes the elements of inputVec
to a vector sum of N
.
The vector elements of inputVec
are first converted to floating numbers to prevent rounding errors.
Here is a simple example:
inputVec = [1,2,3,4]
N = 1
...
outputVec = [0.1,0.2,0.3,0.4]