Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Logic

Index

Constructors

constructor

Methods

boolean

  • Creates a boolean value - true or false

    group

    create

    shortname

    boolean

    drawable

    false

    Parameters

    Returns boolean

    boolean

compare

  • Does comparison between first and second values

    group

    operations

    shortname

    compare

    drawable

    false

    Type parameters

    • T

    Parameters

    Returns boolean

    Result of the comparison

firstDefinedValueGate

  • Returns first defined value out of two

    group

    operations

    shortname

    first defined value gate

    drawable

    false

    Type parameters

    • T

    • U

    Parameters

    Returns T | U

    value or undefined

not

  • Apply not operator on the boolean

    group

    edit

    shortname

    not

    drawable

    false

    Parameters

    Returns boolean

    boolean

notList

  • Apply not operator on a list of booleans

    group

    edit

    shortname

    not list

    drawable

    false

    Parameters

    Returns boolean[]

    booleans

randomBooleans

  • Creates a random boolean list of predefined length

    group

    create

    shortname

    random booleans

    drawable

    false

    Parameters

    • inputs: RandomBooleansDto

      a length and a threshold for randomization of true values

    Returns boolean[]

    booleans

thresholdBooleanList

  • Creates a boolean list based on a list of numbers and a threshold.

    group

    create

    shortname

    threshold boolean list

    drawable

    false

    Parameters

    Returns boolean[]

    booleans

thresholdGapsBooleanList

  • Creates a boolean list based on a list of numbers and a gap thresholds. Gap thresholds are pairs of numbers that define a range of numbers that will be true.

    group

    create

    shortname

    threshold gaps boolean list

    drawable

    false

    Parameters

    Returns boolean[]

    booleans

twoThresholdRandomGradient

  • Creates a random boolean list of true and false values based on a list of numbers. All values between true threshold will be true, all values above false threshold will be false, and the rest will be distributed between true and false based on the number of levels in a gradient pattern. That means that the closer the number gets to the false threshold the bigger the chance will be to get random false value.

    group

    create

    shortname

    2 threshold random gradient

    drawable

    false

    Parameters

    Returns boolean[]

    booleans

valueGate

  • Transmits a value if boolean provided is true and undefined if boolean provided is false

    group

    operations

    shortname

    value gate

    drawable

    false

    Type parameters

    • T

    Parameters

    Returns T

    value or undefined

Generated using TypeDoc