blockTrueArrayConditional

Output a Boolean array with a given number of true elements and a priority order

Information

Accepts indices of true elements that may not be within the range of indices of the output vector. In this, the number of true elements will not be met.

Parameters

TypeNameDefaultDescription
Integernin0Size of input array
IntegernoutninSize of output array

Connectors

TypeNameDefaultDescription
Buildings.Controls.OBC.CDL.Interfaces.IntegerInputuNumber of true elements
Buildings.Controls.OBC.CDL.Interfaces.IntegerInput[nin]uIdxArray of indices by order of priority to be true
Buildings.Controls.OBC.CDL.Interfaces.BooleanOutput[nout]y1Output

Revisions

  • March 29, 2024, by Antoine Gautier:
    First implementation.