Blocks.RealToBoolean
This component extends from partialBooleanSO
Usage
TranslatedComponents.Blocks.RealToBoolean(threshold=0.5)
Parameters:
| Name | Description | Units | Default value |
|---|---|---|---|
threshold | Output signal y is true, if input u >= threshold | – | 0.5 |
Connectors
y- (BooleanOutput)u- This connector represents a real signal as an input to a component (RealInput)
Behavior
Source
dyad
component RealToBoolean
extends partialBooleanSO
u = RealInput()
# Output signal y is true, if input u >= threshold
parameter threshold::Real = 0.5
relations
y = u >= threshold
endFlattened Source
dyad
component RealToBoolean
y = BooleanOutput()
u = RealInput()
# Output signal y is true, if input u >= threshold
parameter threshold::Real = 0.5
relations
y = u >= threshold
metadata {}
endTest Cases
No test cases defined.
Related
Examples
Experiments
Analyses