Skip to content
Blocks.IntegerToBoolean.md

Blocks.IntegerToBoolean

This component extends from partialBooleanSO

Usage

TranslatedComponents.Blocks.IntegerToBoolean(threshold=1)

Parameters:

NameDescriptionUnitsDefault value
thresholdOutput signal y is true, if input u >= threshold1

Connectors

Behavior

y(t)=u(t)threshold

Source

dyad
component IntegerToBoolean
  extends partialBooleanSO
  u = IntegerInput()
  # Output signal y is true, if input u >= threshold
  parameter threshold::Integer = 1
relations
  y = u >= threshold
end
Flattened Source
dyad
component IntegerToBoolean
  y = BooleanOutput()
  u = IntegerInput()
  # Output signal y is true, if input u >= threshold
  parameter threshold::Integer = 1
relations
  y = u >= threshold
metadata {}
end


Test Cases

No test cases defined.

  • Examples

  • Experiments

  • Analyses