Options
All
  • Public
  • Public/Protected
  • All
Menu

Class VariableMap

Maps between a custom variable order and the default sorted variable order.

see

com.bayesserver.IDistribution#getSortedVariables

Hierarchy

  • VariableMap

Index

Constructors

Methods

Constructors

constructor

  • Initializes a new instance of the {@link com.bayesserver.VariableMap} class.

    exception

    ReferenceError Raised if [sortedVariables] or [order] is null.

    exception

    Error Raised if the elements in [order] are not found in [sortedVariables].

    Parameters

    Returns VariableMap

  • Initializes a new instance of the {@link com.bayesserver.VariableMap} class. Initializes a new instance of the {@link com.bayesserver.VariableMap} class. Initializes a new instance of the {@link com.bayesserver.VariableMap} class. Initializes a new instance of the {@link com.bayesserver.VariableMap} class. Initializes a new instance of the {@link com.bayesserver.VariableMap} class. Initializes a new instance of the {@link com.bayesserver.VariableMap} class.

    Parameters

    Returns VariableMap

  • Initializes a new instance of the {@link com.bayesserver.VariableMap} class. Initializes a new instance of the {@link com.bayesserver.VariableMap} class. Initializes a new instance of the {@link com.bayesserver.VariableMap} class. Initializes a new instance of the {@link com.bayesserver.VariableMap} class. Initializes a new instance of the {@link com.bayesserver.VariableMap} class. Initializes a new instance of the {@link com.bayesserver.VariableMap} class.

    Parameters

    Returns VariableMap

  • Initializes a new instance of the {@link com.bayesserver.VariableMap} class.

    exception

    ReferenceError Raised if [sortedVariables] or [order] is null.

    exception

    Error Raised if the elements in [order] are not found in [sortedVariables].

    Parameters

    • sortedVariables: VariableContextCollection

      The sorted variables.

    • order: IList<Variable>

      The custom order, without times.

    • times: IList<number | null>

      The times associated with the variables in [order]. Each entry can be null.

    Returns VariableMap

  • Initializes a new instance of the {@link com.bayesserver.VariableMap} class.

    exception

    ReferenceError Raised if [sortedVariables] or [order] is null.

    exception

    Error Raised if the elements in [order] are not found in [sortedVariables].

    Parameters

    • sortedVariables: VariableContextCollection

      The sorted variables.

    • order: Variable[]

      The custom order, without times.

    • times: number[]

      The times associated with the variables in [order]. Each entry can be null.

    Returns VariableMap

  • Initializes a new instance of the {@link com.bayesserver.VariableMap} class.

    exception

    ReferenceError Raised if [sortedVariables] or [order] is null.

    exception

    Error Raised if the elements in [order] are not found in [sortedVariables].

    Parameters

    Returns VariableMap

  • Initializes a new instance of the {@link com.bayesserver.VariableMap} class.

    exception

    ReferenceError Raised if [sortedVariables] or [order] is null.

    exception

    Error Raised if the elements in [order] are not found in [sortedVariables].

    Parameters

    Returns VariableMap

  • Initializes a new instance of the {@link com.bayesserver.VariableMap} class.

    exception

    ReferenceError Raised if [sortedVariables] or [order] is null.

    exception

    Error Raised if the elements in [order] are not found in [sortedVariables].

    Parameters

    Returns VariableMap

Methods

get

  • get(orderIndex: number): number
  • Maps between the custom order and the sorted collection.

    Parameters

    • orderIndex: number

      Index of the variable in the custom order.

    Returns number

    The index of the variable in the sorted collection.