Options
All
  • Public
  • Public/Protected
  • All
Menu

Module for working with Bins

Index

Variables

TOLERANCE

TOLERANCE: 1e-9 = 1e-9

Functions

binsEq

  • binsEq(bin1: Bin, bin2: Bin): boolean

expandBin

  • Return bins to consider as neighbours for the bin at given index This follows the CDC FluSight guideline for considering the neighbouring bins

    Parameters

    Returns Bin[]

findBin

  • Return bin in which the given value lies. Assume bins are properly sorted. value can be null, in which case we look for the last bin (which is onset bin).

    Parameters

    Returns Bin

findBinIndex

  • findBinIndex(bins: Bin[], value: number, target: TargetId): number
  • Return bin index in which the given value lies. Assume bins are properly sorted. value can be null, in which case we look for the last bin (which is onset bin).

    Parameters

    Returns number

inferPoint

  • inferPoint(bins: Bin[]): number
  • Infer point probability value for the bins

    Parameters

    Returns number

isUniform

  • isUniform(bins: Bin[]): boolean
  • Tell whether the bins represent a uniform distribution

    Parameters

    Returns boolean

sliceSumBins

  • sliceSumBins(bins: Bin[], batch: number): Bin[]
  • Reduce the bins by summing probabilities for batches.

    Parameters

    • bins: Bin[]
    • batch: number

    Returns Bin[]

sortBins

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc