FactorGradient

Class used to store factor gradient

Hierarchy

  • FactorGradient

Implements

Index

Properties

Methods

Properties

factor1

Find examples in Playground
factor1: number

Gets or sets first associated factor

Optional factor2

Find examples in Playground
factor2: number

Gets or sets second associated factor

gradient

Find examples in Playground
gradient: number

Gets or sets the gradient value (between 0 and 1)

Methods

getFactor

Find examples in Playground
  • getFactor(): number
  • Will get a number picked randomly between factor1 and factor2. If factor2 is undefined then factor1 will be used

    Returns number

    the picked number

Generated using TypeDoc