Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ICategoricalStats

categorical statistics object

Hierarchy

Index

Properties

categories: readonly string[]
count: number

number of items in the array

depth: number

in case of nested arrays what is the max nested depth

flatCount: number

number of items in the array

flatItems: readonly string[]

the items in this stats

flatMissing: number

number of missing items in the array

hist: readonly Readonly<IBin<string>>[]

histogram

items: readonly (string | (readonly string[]) | Set<string>)[]

the items in this stats

maxBin: IBin<string>

maximal items in a bin

missing: number

number of missing items in the array

Methods

  • [toPrimitive](hint: "default"): string
  • [toPrimitive](hint: "string"): string
  • [toPrimitive](hint: "number"): number
  • [toPrimitive](hint: string): string | number
  • Converts a Stats object to a string.

    Parameters

    • hint: "default"

    Returns string

  • Converts a Stats object to a string.

    Parameters

    • hint: "string"

    Returns string

  • Converts a Stats object to a number.

    Parameters

    • hint: "number"

    Returns number

  • Converts a Stats object to a string or number.

    throws

    {TypeError} If 'hint' was given something other than "number", "string", or "default".

    Parameters

    • hint: string

      The strings "number", "string", or "default" to specify what primitive to return.

    Returns string | number

    A number if 'hint' was "number", a string if 'hint' was "string" or "default".

  • color(v: T): string
  • converts a given (normalized) value to a color

    Parameters

    • v: T

    Returns string

  • format(v: T): string
  • converts the given value to a label

    Parameters

    • v: T

    Returns string

Generated using TypeDoc