Click or drag to resize

sequenceFunctionGetOutput Method (Double)

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Computes sequence step from decimal phase ratio. e.g. alpha=0.5 for sequence of 10 steps will return value for step 5. steps

Namespace:  imbSCI.Core.math.functions
Assembly:  imbSCI.Core (in imbSCI.Core.dll) Version: 0.3.58.
Syntax
C#
public override double GetOutput(
	double alpha = 0
)
Request Example View Source

Parameters

alpha (Optional)
Type: SystemDouble
Decimal phase of the sequence, e.g. 0.25 gets 2nd step of sequence having 8 steps.

Return Value

Type: Double
Value of step n, where n is: |steps| * (alpha % 1)

Implements

IFunctionGeneratorGetOutput(Double)
Remarks

Negative alpha will return n-th step from the end (reversed query)

Input is recomputed: alpha % 1. e.g. for alpha 1.2, the same output is returned like for alpha = 0.2.

See Also