blockComplementFractions
Taking a vector of k fractions of 1 and adding another fraction as to achieve a total of 1
Extends from Interfaces.PartialConverters.MO (Converter with multiple outputs).
Information
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.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Structural Parameters | |||
| Integer | nout (from MO) | 2 | Number of output signals |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Interfaces.Connectors.RealMultiInput | u | Inputs, the total of which should be less than one |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| RealMultiOutput | y (from MO) | Vector of output signals |