ComplementFractionsTaking a vector of k fractions of 1 and adding another fraction as to achieve a total of 1 |
This information is part of the Business Simulation Library (BSL). Please support this work and ► donate.
The vector output y is obtained by adding another element y_comp to the list of inputs so that the total is 1. If the sum of the inputs is larger than one, then the element added to the list of inputs will be zero.
nout |
Value: 2 Type: Integer Description: Number of output signals |
---|
y |
Type: RealMultiOutput[nout] Description: Vector of output signals |
|
---|---|---|
u |
Type: RealMultiInput[nout - 1] Description: Inputs, the total of which should be less than one |