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

TypeNameDefaultDescription
Structural Parameters
Integernout (from MO)2Number of output signals

Connectors

TypeNameDefaultDescription
Interfaces.Connectors.RealMultiInputuInputs, the total of which should be less than one

Components

TypeNameDefaultDescription
RealMultiOutputy (from MO)Vector of output signals