Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "internal/math"

Index

Type aliases

ILookUpArray

ILookUpArray: Uint8Array | Uint16Array | Uint32Array | Int8Array | Int16Array | Int32Array | string[] | Float32Array | Float64Array

Functions

boxplotBuilder

categoricalStatsBuilder

categoricalValueCache2Value

  • categoricalValueCache2Value<T>(v: number, categories: T[]): null | T
  • Type parameters

    • T: object

    Parameters

    • v: number
    • categories: T[]

    Returns null | T

categoricalValueCacheBuilder

  • categoricalValueCacheBuilder(length: number, categories: object[]): object

createIndexArray

  • createIndexArray(length: number, dataSize?: number): Uint8Array | Uint16Array | Uint32Array
  • Parameters

    • length: number
    • Default value dataSize: number = length

    Returns Uint8Array | Uint16Array | Uint32Array

createWorkerBlob

  • createWorkerBlob(): string

dateStatsBuilder

dateValueCache2Value

  • dateValueCache2Value(v: number): null | Date

dateValueCacheBuilder

  • dateValueCacheBuilder(length: number): object

empty

  • empty(length: number): null[]

extent

  • extent(values: number[]): [number, number]
  • extent<T>(values: T[], acc: function): [number, number]
  • Parameters

    • values: number[]

    Returns [number, number]

  • Type parameters

    • T

    Parameters

    • values: T[]
    • acc: function
        • (v: T): number
        • Parameters

          • v: T

          Returns number

    Returns [number, number]

getNumberOfBins

  • getNumberOfBins(length: number): number

isPromiseLike

  • isPromiseLike<T>(value: any): boolean

joinIndexArrays

  • joinIndexArrays(groups: IndicesArray[], maxDataIndex: undefined | number): Uint8Array | Uint16Array | Uint32Array | ReadonlyArray<number> & ArrayLike<number>
  • Parameters

    • groups: IndicesArray[]
    • Optional maxDataIndex: undefined | number

    Returns Uint8Array | Uint16Array | Uint32Array | ReadonlyArray<number> & ArrayLike<number>

max

  • max(values: number[]): number
  • max<T>(values: T[], acc: function): number
  • Parameters

    • values: number[]

    Returns number

  • Type parameters

    • T

    Parameters

    • values: T[]
    • acc: function
        • (v: T): number
        • Parameters

          • v: T

          Returns number

    Returns number

median

  • median(values: number[]): number
  • median<T>(values: T[], acc: function): number
  • Parameters

    • values: number[]

    Returns number

  • Type parameters

    • T

    Parameters

    • values: T[]
    • acc: function
        • (v: T): number
        • Parameters

          • v: T

          Returns number

    Returns number

min

  • min(values: number[]): number
  • min<T>(values: T[], acc: function): number
  • Parameters

    • values: number[]

    Returns number

  • Type parameters

    • T

    Parameters

    • values: T[]
    • acc: function
        • (v: T): number
        • Parameters

          • v: T

          Returns number

    Returns number

normalizedStatsBuilder

quantile

  • quantile(values: ArrayLike<number>, quantile: number, length?: number): number
  • Parameters

    • values: ArrayLike<number>
    • quantile: number
    • Default value length: number = values.length

    Returns number

range

  • range(length: number): number[]

round

  • round(v: number, precision?: number): number
  • Parameters

    • v: number
    • Default value precision: number = 0

    Returns number

similar

  • similar(a: number, b: number, delta?: number): boolean
  • Parameters

    • a: number
    • b: number
    • Default value delta: number = 0.5

    Returns boolean

    a and b are similar

sortComplex

  • sortComplex(indices: UIntTypedArray | number[], comparators: object[]): Uint8Array | Uint16Array | Uint32Array | number[]

toIndexArray