Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ProgressiveFunctionGenerator

A progressive function data generator. Generates point data that has progressive X axis and the value for Y axis is created from the user given function.

To create a new instance of progressive function data generator use createProgressiveFunctionGenerator factory.

Hierarchy

Index

Constructors

constructor

Methods

generate

  • Generate new instance of DataHost with unique data. Data is added to the DataHost asynchronously.

    Returns DataHost<Point>

    A new DataHost.

setEnd

  • Returns a new Progressive function generator with the new end X-value.

    Parameters

    • end: number

      End X-value

    Returns ProgressiveFunctionGenerator

setSamplingFunction

  • Returns a new Progressive function generator with the new sampling function.

    Parameters

    • handler: (x: number) => number

      A function that is sampled to generate the data.

        • (x: number): number
        • Parameters

          • x: number

          Returns number

    Returns ProgressiveFunctionGenerator

setStart

  • Returns a new Progressive function generator with the new start X-value.

    Parameters

    • start: number

      Start X-value

    Returns ProgressiveFunctionGenerator

setStep

  • Returns a new Progressive function generator with the new X-step.

    Parameters

    • step: number

      X-step between each continuous sample.

    Returns ProgressiveFunctionGenerator