Options
All
  • Public
  • Public/Protected
  • All
Menu

UpSet.js Math - v1.9.1

Index

Type aliases

ICategories

ICategories: readonly ICategory[]

ICategoryBins

ICategoryBins: readonly ICategoryBin[]

QuantilesMethod

QuantilesMethod: "hinges" | "fivenum" | "type7" | "quantiles" | "linear" | "lower" | "higher" | "nearest" | "midpoint"

Functions

boxplot

  • boxplot(data: readonly number[] | Float32Array | Float64Array, options?: BoxplotStatsOptions): IBoxPlot

categoricalHistogram

  • categoricalHistogram(values: readonly string[], categories: readonly (string | ICategory)[], base?: readonly string[], dark?: boolean): readonly ICategoryBin[]
  • Parameters

    • values: readonly string[]
    • categories: readonly (string | ICategory)[]
    • Optional base: readonly string[]
    • dark: boolean = false

    Returns readonly ICategoryBin[]

denormalize

  • denormalize(range: [number, number]): (v: number) => number

normalize

  • normalize(domain: [number, number]): (v: number) => number
  • Parameters

    • domain: [number, number]

    Returns (v: number) => number

      • (v: number): number
      • Parameters

        • v: number

        Returns number

rand

  • rand(seed?: number): () => number