Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SpectrumDataGenerator

Spectrum data generator. Generates rows of random numbers that can be used to mimic spectrum data. Generated data is between 0 and 1.

To create a new instance of Spectrum data generator use createSpectrumDataGenerator factory.

Hierarchy

Index

Constructors

constructor

Methods

generate

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

    Returns DataHost<number[]>

    A new DataHost.

setFrequencyStability

  • Returns a new Data generator with the new frequencyStability.

    Parameters

    • frequencyStability: number

      Frequency drifting also depends on Variation, which effects especially in low Frequency Stability amounts.

    Returns SpectrumDataGenerator

setNarrowFactor1

  • Returns a new Data generator with the new narrowFactor1.

    Parameters

    • narrowFactor1: number

      Factor that alters the narrowness of first spectrum channel.

    Returns SpectrumDataGenerator

setNarrowFactor2

  • Returns a new Data generator with the new narrowFactor2.

    Parameters

    • narrowFactor2: number

      Factor that alters the narrowness of second spectrum channel.

    Returns SpectrumDataGenerator

setNumberOfSamples

  • Returns a new Data generator with the new numberOfSamples.

    Parameters

    • numberOfSamples: number

      How many samples to generate

    Returns SpectrumDataGenerator

setSampleSize

  • Returns a new Data generator with the new sampleSize.

    Parameters

    • sampleSize: number

      How many values are in a single spectrum sample.

    Returns SpectrumDataGenerator

setVariation

  • Returns a new Data generator with the new variation.

    Parameters

    • variation: number

      Variation between adjacent points in range 0...100.

    Returns SpectrumDataGenerator