Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CLGaussian

Represents a Conditional Linear Gaussian probability distribution.

The distribution contains a {@link com.bayesserver.Table} distribution which represents any discrete combinations, and for each combination there exists a multivariate Gaussian distribution and weight/regression coefficients. Note that head variables are those that appear to the left of the bar in the expression P(A|B) and tail variables are those to the right.

Hierarchy

  • CLGaussian

Implements

Index

Constructors

constructor

  • Initializes a new instance of the {@link com.bayesserver.CLGaussian} class with [count] variables specified in [variableContexts]. Initializes a new instance of the {@link com.bayesserver.CLGaussian} class with [count] variables specified in [variableContexts]. Initializes a new instance of the {@link com.bayesserver.CLGaussian} class with the variables of a single node at the specified time. Variables are assumed to be head variables. Initializes a new instance of the {@link com.bayesserver.CLGaussian} class with the specified variables at a particular time. Variables are assumed to be head variables. Initializes a new instance of the {@link com.bayesserver.CLGaussian} class with the specified variables. Initializes a new instance of the {@link com.bayesserver.CLGaussian} class with the specified variables. Initializes a new instance of the {@link com.bayesserver.CLGaussian} class with the specified variables. Variables are assumed to be head variables. Initializes a new instance of the {@link com.bayesserver.CLGaussian} class with the specified variables. Variables are assumed to be head variables. Initializes a new instance of the {@link com.bayesserver.CLGaussian} class with the variables of a single node. Variables are assumed to be head variables. Initializes a new instance of the {@link com.bayesserver.CLGaussian} class with a single variable. The variable is assumed to be a head variable. Initializes a new instance of the {@link com.bayesserver.CLGaussian} class from a single {@link com.bayesserver.VariableContext}. Initializes a new instance of the {@link com.bayesserver.CLGaussian} class with a single variable at the specified time. The variable is assumed to be a head variable. Initializes a new instance of the {@link com.bayesserver.CLGaussian} class, copying the source distribution. Initializes a new instance of the {@link com.bayesserver.CLGaussian} class, copying the source distribution but shifting any times by the specified number of units.

    Each variable, if it belongs to a temporal node can have an associated time. A variable is also marked as either head or tail. Head variables are those on the left, and tail variables are those on the right in the expression P(A|B).

    Each variable, if it belongs to a temporal node can have an associated time. A variable is also marked as either head or tail. Head variables are those on the left, and tail variables are those on the right in the expression P(A|B).

    Parameters

    • variableContexts: VariableContext[]

      The variable contexts containing the distribution variables.

    Returns CLGaussian

  • Initializes a new instance of the {@link com.bayesserver.CLGaussian} class with [count] variables specified in [variableContexts]. Initializes a new instance of the {@link com.bayesserver.CLGaussian} class with [count] variables specified in [variableContexts]. Initializes a new instance of the {@link com.bayesserver.CLGaussian} class with the variables of a single node at the specified time. Variables are assumed to be head variables. Initializes a new instance of the {@link com.bayesserver.CLGaussian} class with the specified variables at a particular time. Variables are assumed to be head variables. Initializes a new instance of the {@link com.bayesserver.CLGaussian} class with the specified variables. Initializes a new instance of the {@link com.bayesserver.CLGaussian} class with the specified variables. Initializes a new instance of the {@link com.bayesserver.CLGaussian} class with the specified variables. Variables are assumed to be head variables. Initializes a new instance of the {@link com.bayesserver.CLGaussian} class with the specified variables. Variables are assumed to be head variables. Initializes a new instance of the {@link com.bayesserver.CLGaussian} class with the variables of a single node. Variables are assumed to be head variables. Initializes a new instance of the {@link com.bayesserver.CLGaussian} class with a single variable. The variable is assumed to be a head variable. Initializes a new instance of the {@link com.bayesserver.CLGaussian} class from a single {@link com.bayesserver.VariableContext}. Initializes a new instance of the {@link com.bayesserver.CLGaussian} class with a single variable at the specified time. The variable is assumed to be a head variable. Initializes a new instance of the {@link com.bayesserver.CLGaussian} class, copying the source distribution. Initializes a new instance of the {@link com.bayesserver.CLGaussian} class, copying the source distribution but shifting any times by the specified number of units.

    Each variable, if it belongs to a temporal node can have an associated time. A variable is also marked as either head or tail. Head variables are those on the left, and tail variables are those on the right in the expression P(A|B).

    Each variable, if it belongs to a temporal node can have an associated time. A variable is also marked as either head or tail. Head variables are those on the left, and tail variables are those on the right in the expression P(A|B).

    Parameters

    • variableContexts: IList<VariableContext>

      The variable contexts containing the distribution variables.

    Returns CLGaussian

  • Initializes a new instance of the {@link com.bayesserver.CLGaussian} class with [count] variables specified in [variableContexts]. Initializes a new instance of the {@link com.bayesserver.CLGaussian} class with [count] variables specified in [variableContexts]. Initializes a new instance of the {@link com.bayesserver.CLGaussian} class with the variables of a single node at the specified time. Variables are assumed to be head variables. Initializes a new instance of the {@link com.bayesserver.CLGaussian} class with the specified variables at a particular time. Variables are assumed to be head variables. Initializes a new instance of the {@link com.bayesserver.CLGaussian} class with the specified variables. Initializes a new instance of the {@link com.bayesserver.CLGaussian} class with the specified variables. Initializes a new instance of the {@link com.bayesserver.CLGaussian} class with the specified variables. Variables are assumed to be head variables. Initializes a new instance of the {@link com.bayesserver.CLGaussian} class with the specified variables. Variables are assumed to be head variables. Initializes a new instance of the {@link com.bayesserver.CLGaussian} class with the variables of a single node. Variables are assumed to be head variables. Initializes a new instance of the {@link com.bayesserver.CLGaussian} class with a single variable. The variable is assumed to be a head variable. Initializes a new instance of the {@link com.bayesserver.CLGaussian} class from a single {@link com.bayesserver.VariableContext}. Initializes a new instance of the {@link com.bayesserver.CLGaussian} class with a single variable at the specified time. The variable is assumed to be a head variable. Initializes a new instance of the {@link com.bayesserver.CLGaussian} class, copying the source distribution. Initializes a new instance of the {@link com.bayesserver.CLGaussian} class, copying the source distribution but shifting any times by the specified number of units.

    Each variable, if it belongs to a temporal node can have an associated time. A variable is also marked as either head or tail. Head variables are those on the left, and tail variables are those on the right in the expression P(A|B).

    Each variable, if it belongs to a temporal node can have an associated time. A variable is also marked as either head or tail. Head variables are those on the left, and tail variables are those on the right in the expression P(A|B).

    Parameters

    • variableContexts: IList<VariableContext>

      The variable contexts containing the distribution variables.

    • headTail: HeadTail

      Overrides the Head or Tail value found in each {@link com.bayesserver.VariableContext}.

    Returns CLGaussian

  • Initializes a new instance of the {@link com.bayesserver.CLGaussian} class with [count] variables specified in [variableContexts].

    Each variable, if it belongs to a temporal node can have an associated time. A variable is also marked as either head or tail. Head variables are those on the left, and tail variables are those on the right in the expression P(A|B).

    exception

    ReferenceError Raised if [variableContexts] is null.

    Parameters

    • variableContexts: VariableContext[]

      The variable contexts containing the distribution variables.

    • count: number

      The number of items to include from [variableContexts].

    Returns CLGaussian

  • Initializes a new instance of the {@link com.bayesserver.CLGaussian} class with [count] variables specified in [variableContexts].

    Each variable, if it belongs to a temporal node can have an associated time. A variable is also marked as either head or tail. Head variables are those on the left, and tail variables are those on the right in the expression P(A|B).

    exception

    ReferenceError Raised if [variableContexts] is null.

    Parameters

    • variableContexts: VariableContext[]

      The variable contexts containing the distribution variables.

    • count: number

      The number of items to include from [variableContexts].

    • headTail: HeadTail

      Overrides the Head or Tail value found in each {@link com.bayesserver.VariableContext}.

    Returns CLGaussian

  • Initializes a new instance of the {@link com.bayesserver.CLGaussian} class with the variables of a single node at the specified time. Variables are assumed to be head variables.

    Each variable, if it belongs to a temporal node can have an associated time. A variable is also marked as either head or tail. Head variables are those on the left, and tail variables are those on the right in the expression P(A|B).

    Each variable, if it belongs to a temporal node can have an associated time. A variable is also marked as either head or tail. Head variables are those on the left, and tail variables are those on the right in the expression P(A|B).

    exception

    ReferenceError Raised if [node] is null.

    Parameters

    • node: Node

      The node whose variables will belong to the new distribution.

    • time: number | null

      The time for any temporal nodes/variables.

    Returns CLGaussian

  • Initializes a new instance of the {@link com.bayesserver.CLGaussian} class with the specified variables at a particular time. Variables are assumed to be head variables.

    Each variable, if it belongs to a temporal node can have an associated time. A variable is also marked as either head or tail. Head variables are those on the left, and tail variables are those on the right in the expression P(A|B).

    Each variable, if it belongs to a temporal node can have an associated time. A variable is also marked as either head or tail. Head variables are those on the left, and tail variables are those on the right in the expression P(A|B).

    exception

    ReferenceError Raised if [variables] is null.

    exception

    Error Raised if an element of [variables] is null or a variable does not belong to a network.

    Parameters

    • variables: IList<Variable>

      The variables for the new distribution.

    • time: number | null

      The time for any temporal nodes/variables.

    Returns CLGaussian

  • Initializes a new instance of the {@link com.bayesserver.CLGaussian} class with the specified variables.

    Each variable, if it belongs to a temporal node can have an associated time. A variable is also marked as either head or tail. Head variables are those on the left, and tail variables are those on the right in the expression P(A|B).

    Each variable, if it belongs to a temporal node can have an associated time. A variable is also marked as either head or tail. Head variables are those on the left, and tail variables are those on the right in the expression P(A|B).

    exception

    ReferenceError Raised if [variables] is null.

    exception

    Error Raised if an element of [variables] is null or a variable does not belong to a network.

    Parameters

    • variables: IList<Variable>

      The variables for the new distribution.

    • headTail: HeadTail

      Overrides the Head or Tail value found in each {@link com.bayesserver.VariableContext}.

    Returns CLGaussian

  • Initializes a new instance of the {@link com.bayesserver.CLGaussian} class with the specified variables.

    Each variable, if it belongs to a temporal node can have an associated time. A variable is also marked as either head or tail. Head variables are those on the left, and tail variables are those on the right in the expression P(A|B).

    Each variable, if it belongs to a temporal node can have an associated time. A variable is also marked as either head or tail. Head variables are those on the left, and tail variables are those on the right in the expression P(A|B).

    exception

    ReferenceError Raised if [variables] is null.

    exception

    Error Raised if an element of [variables] is null or a variable does not belong to a network.

    Parameters

    • variables: IList<Variable>

      The variables for the new distribution.

    • time: number | null

      The time for any temporal nodes/variables.

    • headTail: HeadTail

      Overrides the Head or Tail value found in each {@link com.bayesserver.VariableContext}.

    Returns CLGaussian

  • Initializes a new instance of the {@link com.bayesserver.CLGaussian} class with the specified variables. Variables are assumed to be head variables.

    Each variable, if it belongs to a temporal node can have an associated time. A variable is also marked as either head or tail. Head variables are those on the left, and tail variables are those on the right in the expression P(A|B).

    Each variable, if it belongs to a temporal node can have an associated time. A variable is also marked as either head or tail. Head variables are those on the left, and tail variables are those on the right in the expression P(A|B).

    Parameters

    • variables: IList<Variable>

      The variables for the new distribution.

    Returns CLGaussian

  • Initializes a new instance of the {@link com.bayesserver.CLGaussian} class with the specified variables. Variables are assumed to be head variables.

    Each variable, if it belongs to a temporal node can have an associated time. A variable is also marked as either head or tail. Head variables are those on the left, and tail variables are those on the right in the expression P(A|B).

    Each variable, if it belongs to a temporal node can have an associated time. A variable is also marked as either head or tail. Head variables are those on the left, and tail variables are those on the right in the expression P(A|B).

    Parameters

    • variables: Variable[]

      The variables for the new distribution.

    Returns CLGaussian

  • Initializes a new instance of the {@link com.bayesserver.CLGaussian} class with the variables of a single node. Variables are assumed to be head variables.

    Each variable, if it belongs to a temporal node can have an associated time. A variable is also marked as either head or tail. Head variables are those on the left, and tail variables are those on the right in the expression P(A|B).

    Each variable, if it belongs to a temporal node can have an associated time. A variable is also marked as either head or tail. Head variables are those on the left, and tail variables are those on the right in the expression P(A|B).

    Parameters

    • node: Node

      The node whose variables will belong to the new distribution.

    Returns CLGaussian

  • Initializes a new instance of the {@link com.bayesserver.CLGaussian} class with a single variable. The variable is assumed to be a head variable.

    Each variable, if it belongs to a temporal node can have an associated time. A variable is also marked as either head or tail. Head variables are those on the left, and tail variables are those on the right in the expression P(A|B).

    Each variable, if it belongs to a temporal node can have an associated time. A variable is also marked as either head or tail. Head variables are those on the left, and tail variables are those on the right in the expression P(A|B).

    Parameters

    • variable: Variable

      The variable that will belong to the new distribution.

    Returns CLGaussian

  • Initializes a new instance of the {@link com.bayesserver.CLGaussian} class from a single {@link com.bayesserver.VariableContext}.

    Each variable, if it belongs to a temporal node can have an associated time. A variable is also marked as either head or tail. Head variables are those on the left, and tail variables are those on the right in the expression P(A|B).

    Each variable, if it belongs to a temporal node can have an associated time. A variable is also marked as either head or tail. Head variables are those on the left, and tail variables are those on the right in the expression P(A|B).

    exception

    ReferenceError Raised when [variableContext] is null.

    Parameters

    Returns CLGaussian

  • Initializes a new instance of the {@link com.bayesserver.CLGaussian} class with a single variable at the specified time. The variable is assumed to be a head variable.

    Each variable, if it belongs to a temporal node can have an associated time. A variable is also marked as either head or tail. Head variables are those on the left, and tail variables are those on the right in the expression P(A|B).

    Each variable, if it belongs to a temporal node can have an associated time. A variable is also marked as either head or tail. Head variables are those on the left, and tail variables are those on the right in the expression P(A|B).

    exception

    ReferenceError Raised if [variable] is null.

    Parameters

    • variable: Variable

      The variable that will belong to the new distribution.

    • time: number | null

      The time for any temporal nodes/variables.

    Returns CLGaussian

  • Initializes a new instance of the {@link com.bayesserver.CLGaussian} class, copying the source distribution.

    Each variable, if it belongs to a temporal node can have an associated time. A variable is also marked as either head or tail. Head variables are those on the left, and tail variables are those on the right in the expression P(A|B).

    Each variable, if it belongs to a temporal node can have an associated time. A variable is also marked as either head or tail. Head variables are those on the left, and tail variables are those on the right in the expression P(A|B).

    Parameters

    Returns CLGaussian

  • Initializes a new instance of the {@link com.bayesserver.CLGaussian} class, copying the source distribution but shifting any times by the specified number of units.

    Each variable, if it belongs to a temporal node can have an associated time. A variable is also marked as either head or tail. Head variables are those on the left, and tail variables are those on the right in the expression P(A|B).

    Each variable, if it belongs to a temporal node can have an associated time. A variable is also marked as either head or tail. Head variables are those on the left, and tail variables are those on the right in the expression P(A|B).

    Parameters

    • source: CLGaussian

      The distribution to copy.

    • timeShift: number | null

      The number of units to adjust any times associated with variables.

    Returns CLGaussian

Properties

_39d9d5f7317c4bb79bd3c1e43b2b4a43

_39d9d5f7317c4bb79bd3c1e43b2b4a43: string | null = null
inheritdoc

Accessors

locked

  • get locked(): boolean
  • set locked(value: boolean): void
  • inheritdoc

    Returns boolean

  • inheritdoc

    Parameters

    • value: boolean

    Returns void

outer

owner

  • Gets the current owner, if assigned to a node. A distribution cannot be modified when it is assigned to a node.

    Returns Node

    The owner, or null if not assigned to a node.

sortedContinuousHead

  • Gets the collection of continuous head variables in the distribution, sorted by time (which may be null) and the order in which variables were created.

    Note that head variables are those that appear to the left of the bar in the expression P(A|B) and tail variables are those to the right.

    see

    com.bayesserver.VariableMap

    Returns VariableContextCollection

    Continuous head variables sorted by time, and the order in which variables were created.

sortedContinuousTail

  • Gets the collection of continuous tail variables in the distribution, sorted by time (which may be null) and the order in which variables were created.

    Note that head variables are those that appear to the left of the bar in the expression P(A|B) and tail variables are those to the right.

    see

    com.bayesserver.VariableMap

    Returns VariableContextCollection

    Continuous tail variables sorted by time and the order in which variables were created.

sortedVariables

  • Gets the collection of variables in the distribution, sorted by time (which may be null) and the order in which variables were created.

    Returns VariableContextCollection

    Variables sorted by time and the order in which variables were created.

table

  • Gets the {@link com.bayesserver.Table} which specifies the distribution over any discrete variables.

    Returns Table

    The table.

Methods

_rs_x_

  • _rs_x_(p_autogen41: number, p_autogen42: number): number
  • Parameters

    • p_autogen41: number
    • p_autogen42: number

    Returns number

_rt_x_

  • _rt_x_(p_autogen69: number, p_autogen70: number): number
  • Parameters

    • p_autogen69: number
    • p_autogen70: number

    Returns number

_ru_x_

  • _ru_x_(p_autogen98: number, p_autogen99: number, p_autogen100: number): number
  • Parameters

    • p_autogen98: number
    • p_autogen99: number
    • p_autogen100: number

    Returns number

_rv_x_

  • _rv_x_(p_autogen143: number, p_autogen144: number, p_autogen145: number): number
  • Parameters

    • p_autogen143: number
    • p_autogen144: number
    • p_autogen145: number

    Returns number

_setOwner

  • _setOwner(value: Node): void
  • Parameters

    Returns void

_sq_x_

  • _sq_x_(p_autogen227: number, p_autogen228: number, p_autogen229: number, p_autogen230: number): void
  • Parameters

    • p_autogen227: number
    • p_autogen228: number
    • p_autogen229: number
    • p_autogen230: number

    Returns void

_sr_x_

  • _sr_x_(p_autogen287: number, p_autogen288: number, p_autogen289: number): void
  • Parameters

    • p_autogen287: number
    • p_autogen288: number
    • p_autogen289: number

    Returns void

_ss_x_

  • _ss_x_(p_autogen329: number, p_autogen330: number, p_autogen331: number, p_autogen332: number): void
  • Parameters

    • p_autogen329: number
    • p_autogen330: number
    • p_autogen331: number
    • p_autogen332: number

    Returns void

_vu_x_

  • _vu_x_(p_autogen467: number, p_autogen468: string, p_autogen469: boolean): boolean
  • Parameters

    • p_autogen467: number
    • p_autogen468: string
    • p_autogen469: boolean

    Returns boolean

copy

  • Creates a copy of the distribution. The new distribution will not have an owner.

    Returns IDistribution

    A copy of this instance.

  • Creates a copy of the distribution, and shifts any times associated with variables by the specified amount. The new distribution will not have an owner.

    Parameters

    • timeShift: number | null

      The amount to shift any times present in the distribution. Can be negative.

    Returns IDistribution

    A copy of this instance, with shifted times.

copyFrom

  • Copies the values from the [source] distribution to this instance. The variable counts between distributions must match but the variable contexts need not be equal.

    Parameters

    • source: CLGaussian

      The source distribution from which values are copied.

    Returns void

divide

  • Creates a new distribution by dividing this instance by the [subset]. Also known as the complement.

    If the resulting distribution were subsequently multiplied by [subset], the result would be equivalent to this instance.

    exception

    ReferenceError Raised if [subset] is null.

    exception

    Error If subset is not a subset of variables in this instance.

    Parameters

    Returns IDistribution

    The new distribution (complement).

  • Creates a new distribution by dividing this instance by the [subset]. Also known as the complement.

    If the resulting distribution were subsequently multiplied by [subset], the result would be equivalent to this instance.

    exception

    ReferenceError Raised if [subset] is null.

    exception

    Error If subset is not a subset of variables in this instance.

    Parameters

    Returns CLGaussian

    The new distribution (complement).

getCovariance

  • Gets the covariance of the Gaussian distribution at the specified [index] in the {@link com.bayesserver.Table} of discrete combinations.

    Parameters

    • index: number

      The index into the discrete table of combinations. If no discrete variables are present in the distribution, index will always be 0.

    • sortedContinuousHeadA: number

      The position of the first continuous head variable.

    • sortedContinuousHeadB: number

      The position of the second continuous head variable.

    Returns number

    The covariance entry.

  • Gets the covariance of the Gaussian distribution between [continuousHeadA] and [continuousHeadB] for a particular discrete combination (mixture).

    Parameters

    • continuousHeadA: Variable

      A continuous head variable from H in the expression P(H) or P(H|T).

    • continuousHeadB: Variable

      A second continuous head variable from H in the expression P(H) or P(H|T).

    • discrete: State[]

      The discrete combination (mixture). Can be empty if this distribution has no discrete variables (i.e. the Gaussian is not a mixture of Gaussians).

    Returns number

    The covariance value.

  • Gets the covariance of a Gaussian distribution with no discrete variables between [continuousHeadA] and [continuousHeadB].

    Parameters

    • continuousHeadA: Variable

      A continuous head variable from H in the expression P(H) or P(H|T).

    • continuousHeadB: Variable

      A second continuous head variable from H in the expression P(H) or P(H|T).

    Returns number

    The covariance value.

  • Gets the covariance of a Gaussian distribution with no discrete variables between [continuousHeadA] and [continuousHeadB].

    Parameters

    • continuousHeadA: Variable

      A continuous head variable from H in the expression P(H) or P(H|T).

    • timeA: number | null

      The time of the first continuous head variable, or null if not a temporal variable.

    • continuousHeadB: Variable

      A second continuous head variable from H in the expression P(H) or P(H|T).

    • timeB: number | null

      The time of the second continuous head variable, or null if not a temporal variable.

    Returns number

    The covariance value.

  • Gets the covariance of the Gaussian distribution between [continuousHeadA] and [continuousHeadB] for a particular discrete combination (mixture).

    Parameters

    • continuousHeadA: Variable

      A continuous head variable from H in the expression P(H) or P(H|T).

    • continuousHeadB: Variable

      A second continuous head variable from H in the expression P(H) or P(H|T).

    • discrete: StateContext[]

      The discrete combination (mixture). Can be empty if this distribution has no discrete variables (i.e. the Gaussian is not a mixture of Gaussians).

    Returns number

    The covariance value.

  • Gets the covariance of the Gaussian distribution between [continuousHeadA] and [continuousHeadB] for a particular discrete combination (mixture).

    Parameters

    • continuousHeadA: Variable

      A continuous head variable from H in the expression P(H) or P(H|T).

    • timeA: number | null

      The time of the first continuous head variable, or null if not a temporal variable.

    • continuousHeadB: Variable

      A second continuous head variable from H in the expression P(H) or P(H|T).

    • timeB: number | null

      The time of the second continuous head variable, or null if not a temporal variable.

    • discrete: State[]

      The discrete combination (mixture). Can be empty if this distribution has no discrete variables (i.e. the Gaussian is not a mixture of Gaussians).

    Returns number

    The covariance value.

  • Gets the covariance of the Gaussian distribution between [continuousHeadA] and [continuousHeadB] for a particular discrete combination (mixture).

    Parameters

    • continuousHeadA: Variable

      A continuous head variable from H in the expression P(H) or P(H|T).

    • timeA: number | null

      The time of the first continuous head variable, or null if not a temporal variable.

    • continuousHeadB: Variable

      A second continuous head variable from H in the expression P(H) or P(H|T).

    • timeB: number | null

      The time of the second continuous head variable, or null if not a temporal variable.

    • discrete: StateContext[]

      The discrete combination (mixture). Can be empty if this distribution has no discrete variables (i.e. the Gaussian is not a mixture of Gaussians).

    Returns number

    The covariance value.

  • Gets the covariance of the Gaussian distribution between [continuousHeadA] and [continuousHeadB] for a particular discrete combination (mixture).

    Parameters

    • continuousHeadA: VariableContext

      A continuous head variable and time (if any) from H in the expression P(H) or P(H|T).

    • continuousHeadB: VariableContext

      A second continuous head variable and time (if any) from H in the expression P(H) or P(H|T).

    • discrete: State[]

      The discrete combination (mixture). Can be empty if this distribution has no discrete variables (i.e. the Gaussian is not a mixture of Gaussians).

    Returns number

    The covariance value.

  • Gets the covariance of the Gaussian distribution between [continuousHeadA] and [continuousHeadB] for a particular discrete combination (mixture).

    Parameters

    • continuousHeadA: VariableContext

      A continuous head variable and time (if any) from H in the expression P(H) or P(H|T).

    • continuousHeadB: VariableContext

      A second continuous head variable and time (if any) from H in the expression P(H) or P(H|T).

    • discrete: StateContext[]

      The discrete combination (mixture). Can be empty if this distribution has no discrete variables (i.e. the Gaussian is not a mixture of Gaussians).

    Returns number

    The covariance value.

  • Gets the covariance of the Gaussian distribution between [continuousHeadA] and [continuousHeadB] for a particular discrete combination (mixture).

    Parameters

    • continuousHeadA: Variable

      A continuous head variable from H in the expression P(H) or P(H|T).

    • continuousHeadB: Variable

      A second continuous head variable from H in the expression P(H) or P(H|T).

    • iterator: TableIterator

      The discrete combination (mixture) identified by the position of the iterator.

    Returns number

    The covariance value.

  • Gets the covariance of the Gaussian distribution between [continuousHeadA] and [continuousHeadB] for a particular discrete combination (mixture).

    Parameters

    • continuousHeadA: Variable

      A continuous head variable from H in the expression P(H) or P(H|T).

    • timeA: number | null

      The time of the first continuous head variable, or null if not a temporal variable.

    • continuousHeadB: Variable

      A second continuous head variable from H in the expression P(H) or P(H|T).

    • timeB: number | null

      The time of the second continuous head variable, or null if not a temporal variable.

    • iterator: TableIterator

      The discrete combination (mixture) identified by the position of the iterator.

    Returns number

    The covariance value.

  • Gets the covariance of the Gaussian distribution between [continuousHeadA] and [continuousHeadB] for a particular discrete combination (mixture).

    Parameters

    • continuousHeadA: VariableContext

      A continuous head variable and time (if any) from H in the expression P(H) or P(H|T).

    • continuousHeadB: VariableContext

      A second continuous head variable and time (if any) from H in the expression P(H) or P(H|T).

    • iterator: TableIterator

      The discrete combination (mixture) identified by the position of the iterator.

    Returns number

    The covariance value.

getMean

  • Gets the mean of the Gaussian distribution at the specified [index] in the {@link com.bayesserver.Table} of discrete combinations.

    Parameters

    • index: number

      The index into the discrete table of combinations. If no discrete variables are present in the distribution, index will always be 0.

    • sortedContinuousHead: number

      The position of the required continuous head variable.

    Returns number

    The mean value.

  • Gets the mean value of the Gaussian distribution for the specified [continuousHead] variable for the [discrete] combination.

    Parameters

    • continuousHead: Variable

      A continuous head variable from H in the expression P(H) or P(H|T).

    • discrete: State[]

      The discrete combination (mixture). Can be empty if this distribution has no discrete variables (i.e. the Gaussian is not a mixture of Gaussians).

    Returns number

    The mean value.

  • Gets the mean value of a Gaussian distribution with no discrete variables for the specified [continuousHead] variable.

    Parameters

    • continuousHead: Variable

      A continuous head variable from H in the expression P(H) or P(H|T).

    Returns number

    The mean value.

  • Gets the mean value of a Gaussian distribution with no discrete variables for the specified [continuousHead] variable and time.

    Parameters

    • continuousHead: Variable

      A continuous head variable from H in the expression P(H) or P(H|T).

    • time: number | null

      The time of the continuous head variable, or null if not a temporal variable.

    Returns number

    The mean value.

  • Gets the mean value of the Gaussian distribution for the specified [continuousHead] variable for the [discrete] combination.

    Parameters

    • continuousHead: Variable

      A continuous head variable from H in the expression P(H) or P(H|T).

    • time: number | null

      The time of the continuous head variable, or null if not a temporal variable.

    • discrete: State[]

      The discrete combination (mixture). Can be empty if this distribution has no discrete variables (i.e. the Gaussian is not a mixture of Gaussians).

    Returns number

    The mean value.

  • Gets the mean value of the Gaussian distribution for the specified [continuousHead] variable for the [discrete] combination.

    Parameters

    • continuousHead: VariableContext

      A continuous head variable and time (if any) from H in the expression P(H) or P(H|T).

    • discrete: State[]

      The discrete combination (mixture). Can be empty if this distribution has no discrete variables (i.e. the Gaussian is not a mixture of Gaussians).

    Returns number

    The mean value.

  • Gets the mean value of the Gaussian distribution for the specified [continuousHead] variable for the [discrete] combination.

    Parameters

    • continuousHead: Variable

      A continuous head variable from H in the expression P(H) or P(H|T).

    • discrete: StateContext[]

      The discrete combination (mixture). Can be empty if this distribution has no discrete variables (i.e. the Gaussian is not a mixture of Gaussians).

    Returns number

    The mean value.

  • Gets the mean value of the Gaussian distribution for the specified [continuousHead] variable for the [discrete] combination.

    Parameters

    • continuousHead: Variable

      A continuous head variable from H in the expression P(H) or P(H|T).

    • time: number | null

      The time of the continuous head variable, or null if not a temporal variable.

    • discrete: StateContext[]

      The discrete combination (mixture). Can be empty if this distribution has no discrete variables (i.e. the Gaussian is not a mixture of Gaussians).

    Returns number

    The mean value.

  • Gets the mean value of the Gaussian distribution for the specified [continuousHead] variable for the [discrete] combination.

    Parameters

    • continuousHead: VariableContext

      A continuous head variable and time (if any) from H in the expression P(H) or P(H|T).

    • discrete: StateContext[]

      The discrete combination (mixture). Can be empty if this distribution has no discrete variables (i.e. the Gaussian is not a mixture of Gaussians).

    Returns number

    The mean value.

  • Gets the mean value of the Gaussian distribution for the specified [continuousHead] variable for the discrete combination.

    Parameters

    • continuousHead: Variable

      A continuous head variable from H in the expression P(H) or P(H|T).

    • iterator: TableIterator

      The discrete combination (mixture) identified by the position of the iterator.

    Returns number

    The mean value.

  • Gets the mean value of the Gaussian distribution for the specified [continuousHead] variable for the discrete combination.

    Parameters

    • continuousHead: Variable

      A continuous head variable from H in the expression P(H) or P(H|T).

    • time: number | null

      The time of the continuous head variable, or null if not a temporal variable.

    • iterator: TableIterator

      The discrete combination (mixture) identified by the position of the iterator.

    Returns number

    The mean value.

  • Gets the mean value of the Gaussian distribution for the specified [continuousHead] variable for the discrete combination.

    Parameters

    • continuousHead: VariableContext

      A continuous head variable and time (if any) from H in the expression P(H) or P(H|T).

    • iterator: TableIterator

      The discrete combination (mixture) identified by the position of the iterator.

    Returns number

    The mean value.

getVariance

  • Gets the variance of the Gaussian distribution at the specified [index] in the {@link com.bayesserver.Table} of discrete combinations.

    Parameters

    • index: number

      The index into the discrete table of combinations. If no discrete variables are present in the distribution, index will always be 0.

    • sortedContinuousHead: number

      The position of the required continuous head variable.

    Returns number

    The variance.

  • Gets the variance of the Gaussian distribution for the specified [continuousHead] variable for a particular discrete combination (mixture).

    Parameters

    • continuousHead: Variable

      A continuous head variable from H in the expression P(H) or P(H|T).

    • discrete: State[]

      The discrete combination (mixture). Can be empty if this distribution has no discrete variables (i.e. the Gaussian is not a mixture of Gaussians).

    Returns number

    The variance value.

  • Gets the variance of a Gaussian distribution with no discrete variables for the specified [continuousHead] variable.

    Parameters

    • continuousHead: Variable

      A continuous head variable from H in the expression P(H) or P(H|T).

    Returns number

    The variance value.

  • Gets the variance of a Gaussian distribution with no discrete variables for the specified [continuousHead] variable.

    Parameters

    • continuousHead: Variable

      A continuous head variable from H in the expression P(H) or P(H|T).

    • time: number | null

      The time of the continuous head variable, or null if not a temporal variable.

    Returns number

    The variance value.

  • Gets the variance of the Gaussian distribution for the specified [continuousHead] variable for a particular discrete combination (mixture).

    Parameters

    • continuousHead: Variable

      A continuous head variable from H in the expression P(H) or P(H|T).

    • time: number | null

      The time of the continuous head variable, or null if not a temporal variable.

    • discrete: State[]

      The discrete combination (mixture). Can be empty if this distribution has no discrete variables (i.e. the Gaussian is not a mixture of Gaussians).

    Returns number

    The variance value.

  • Gets the variance of the Gaussian distribution for the specified [continuousHead] variable for a particular discrete combination (mixture).

    Parameters

    • continuousHead: VariableContext

      A continuous head variable and time (if any) from H in the expression P(H) or P(H|T).

    • discrete: State[]

      The discrete combination (mixture). Can be empty if this distribution has no discrete variables (i.e. the Gaussian is not a mixture of Gaussians).

    Returns number

    The variance value.

  • Gets the variance of the Gaussian distribution for the specified [continuousHead] variable for a particular discrete combination (mixture).

    Parameters

    • continuousHead: Variable

      A continuous head variable from H in the expression P(H) or P(H|T).

    • discrete: StateContext[]

      The discrete combination (mixture). Can be empty if this distribution has no discrete variables (i.e. the Gaussian is not a mixture of Gaussians).

    Returns number

    The variance value.

  • Gets the variance of the Gaussian distribution for the specified [continuousHead] variable for a particular discrete combination (mixture).

    Parameters

    • continuousHead: Variable

      A continuous head variable from H in the expression P(H) or P(H|T).

    • time: number | null

      The time of the continuous head variable, or null if not a temporal variable.

    • discrete: StateContext[]

      The discrete combination (mixture). Can be empty if this distribution has no discrete variables (i.e. the Gaussian is not a mixture of Gaussians).

    Returns number

    The variance value.

  • Gets the variance of the Gaussian distribution for the specified [continuousHead] variable for a particular discrete combination (mixture).

    Parameters

    • continuousHead: VariableContext

      A continuous head variable and time (if any) from H in the expression P(H) or P(H|T).

    • discrete: StateContext[]

      The discrete combination (mixture). Can be empty if this distribution has no discrete variables (i.e. the Gaussian is not a mixture of Gaussians).

    Returns number

    The variance value.

  • Gets the variance of the Gaussian distribution for the specified [continuousHead] variable for a particular discrete combination (mixture).

    Parameters

    • continuousHead: Variable

      A continuous head variable from H in the expression P(H) or P(H|T).

    • iterator: TableIterator

      The discrete combination (mixture) identified by the position of the iterator.

    Returns number

    The variance value.

  • Gets the variance of the Gaussian distribution for the specified [continuousHead] variable for a particular discrete combination (mixture).

    Parameters

    • continuousHead: Variable

      A continuous head variable from H in the expression P(H) or P(H|T).

    • time: number | null

      The time of the continuous head variable, or null if not a temporal variable.

    • iterator: TableIterator

      The discrete combination (mixture) identified by the position of the iterator.

    Returns number

    The variance value.

  • Gets the variance of the Gaussian distribution for the specified [continuousHead] variable for a particular discrete combination (mixture).

    Parameters

    • continuousHead: VariableContext

      A continuous head variable and time (if any) from H in the expression P(H) or P(H|T).

    • iterator: TableIterator

      The discrete combination (mixture) identified by the position of the iterator.

    Returns number

    The variance value.

getWeight

  • Gets the weight (regression coefficient) of the Gaussian distribution at the specified [index] in the {@link com.bayesserver.Table} of discrete combinations.

    Parameters

    • index: number

      The index into the discrete table of combinations. If no discrete variables are present in the distribution, index will always be 0.

    • sortedContinuousHead: number

      The position of the required continuous head variable.

    • sortedContinuousTail: number

      The position of the required continuous tail variable.

    Returns number

    The weight / regression coefficient.

  • Gets the weight/regression coefficient of the Gaussian distribution between the [continuousTail] and [continuousHead] for a particular discrete combination (mixture).

    Parameters

    • continuousHead: Variable

      A continuous head variable from H in the expression P(H|T).

    • continuousTail: Variable

      A continuous tail variable from T in the expression P(H|T).

    • discrete: State[]

      The discrete combination (mixture). Can be empty if this distribution has no discrete variables (i.e. the Gaussian is not a mixture of Gaussians).

    Returns number

    The weight/regression coefficient.

  • Gets the weight/regression coefficient of the Gaussian distribution between the [continuousTail] and [continuousHead] for a particular discrete combination (mixture).

    Parameters

    • continuousHead: Variable

      A continuous head variable from H in the expression P(H|T).

    • timeHead: number | null

      The time of the continuous head variable, or null if not a temporal variable.

    • continuousTail: Variable

      A continuous tail variable from T in the expression P(H|T).

    • timeTail: number | null

      The time of the continuous tail variable, or null if not a temporal variable.

    • discrete: State[]

      The discrete combination (mixture). Can be empty if this distribution has no discrete variables (i.e. the Gaussian is not a mixture of Gaussians).

    Returns number

    The weight/regression coefficient.

  • Gets the weight/regression coefficient of the Gaussian distribution between the [continuousTail] and [continuousHead] for a particular discrete combination (mixture).

    Parameters

    • continuousHead: VariableContext

      A continuous head variable and time (if any) from H in the expression P(H|T).

    • continuousTail: VariableContext

      A continuous tail variable and time (if any) from T in the expression P(H|T).

    • discrete: State[]

      The discrete combination (mixture). Can be empty if this distribution has no discrete variables (i.e. the Gaussian is not a mixture of Gaussians).

    Returns number

    The weight/regression coefficient.

  • Gets the weight/regression coefficient of the Gaussian distribution between the [continuousTail] and [continuousHead] for a particular discrete combination (mixture).

    Parameters

    • continuousHead: Variable

      A continuous head variable from H in the expression P(H|T).

    • continuousTail: Variable

      A continuous tail variable from T in the expression P(H|T).

    • discrete: StateContext[]

      The discrete combination (mixture). Can be empty if this distribution has no discrete variables (i.e. the Gaussian is not a mixture of Gaussians).

    Returns number

    The weight/regression coefficient.

  • Gets the weight/regression coefficient of a Gaussian distribution with no discrete variables between the [continuousTail] and [continuousHead].

    Parameters

    • continuousHead: Variable

      A continuous head variable from H in the expression P(H|T).

    • continuousTail: Variable

      A continuous tail variable from T in the expression P(H|T).

    Returns number

    The weight/regression coefficient.

  • Gets the weight/regression coefficient of the Gaussian distribution between the [continuousTail] and [continuousHead] for a particular discrete combination (mixture).

    Parameters

    • continuousHead: Variable

      A continuous head variable from H in the expression P(H|T).

    • timeHead: number | null

      The time of the continuous head variable, or null if not a temporal variable.

    • continuousTail: Variable

      A continuous tail variable from T in the expression P(H|T).

    • timeTail: number | null

      The time of the continuous tail variable, or null if not a temporal variable.

    • discrete: StateContext[]

      The discrete combination (mixture). Can be empty if this distribution has no discrete variables (i.e. the Gaussian is not a mixture of Gaussians).

    Returns number

    The weight/regression coefficient.

  • Gets the weight/regression coefficient of a Gaussian distribution with no discrete variables between the [continuousTail] and [continuousHead].

    Parameters

    • continuousHead: Variable

      A continuous head variable from H in the expression P(H|T).

    • timeHead: number | null

      The time of the continuous head variable, or null if not a temporal variable.

    • continuousTail: Variable

      A continuous tail variable from T in the expression P(H|T).

    • timeTail: number | null

      The time of the continuous tail variable, or null if not a temporal variable.

    Returns number

    The weight/regression coefficient.

  • Gets the weight/regression coefficient of the Gaussian distribution between the [continuousTail] and [continuousHead] for a particular discrete combination (mixture).

    Parameters

    • continuousHead: VariableContext

      A continuous head variable and time (if any) from H in the expression P(H|T).

    • continuousTail: VariableContext

      A continuous tail variable and time (if any) from T in the expression P(H|T).

    • discrete: StateContext[]

      The discrete combination (mixture). Can be empty if this distribution has no discrete variables (i.e. the Gaussian is not a mixture of Gaussians).

    Returns number

    The weight/regression coefficient.

  • Gets the weight/regression coefficient of the Gaussian distribution between the [continuousTail] and [continuousHead] for a particular discrete combination (mixture).

    Parameters

    • continuousHead: Variable

      A continuous head variable from H in the expression P(H|T).

    • continuousTail: Variable

      A continuous tail variable from T in the expression P(H|T).

    • iterator: TableIterator

      The discrete combination (mixture) identified by the position of the iterator.

    Returns number

    The weight/regression coefficient.

  • Gets the weight/regression coefficient of the Gaussian distribution between the [continuousTail] and [continuousHead] for a particular discrete combination (mixture).

    Parameters

    • continuousHead: Variable

      A continuous head variable from H in the expression P(H|T).

    • timeHead: number | null

      The time of the continuous head variable, or null if not a temporal variable.

    • continuousTail: Variable

      A continuous tail variable from T in the expression P(H|T).

    • timeTail: number | null

      The time of the continuous tail variable, or null if not a temporal variable.

    • iterator: TableIterator

      The discrete combination (mixture) identified by the position of the iterator.

    Returns number

    The weight/regression coefficient.

  • Gets the weight/regression coefficient of the Gaussian distribution between the [continuousTail] and [continuousHead] for a particular discrete combination (mixture).

    Parameters

    • continuousHead: VariableContext

      A continuous head variable and time (if any) from H in the expression P(H|T).

    • continuousTail: VariableContext

      A continuous tail variable from T in the expression P(H|T).

    • iterator: TableIterator

      The discrete combination (mixture) identified by the position of the iterator.

    Returns number

    The weight/regression coefficient.

instantiate

  • Calculates the distribution which results from instantiating a number of variables.

    [values] should contain one entry for each

    see

    com.bayesserver.VariableContext in the distribution, however entries can be null.

    Parameters

    • values: number[]

      The instantiated values. Entries can be null.

    Returns IDistribution

    The instantiated distribution.

  • Calculates the distribution which results from instantiating a particular variable.

    exception

    ReferenceError Raised if [variable] is null.

    Parameters

    • variable: Variable

      The variable to instantiate.

    • value: number

      The instantiated value.

    Returns CLGaussian

    The instantiated distribution.

  • Calculates the distribution which results from instantiating a particular variable at a specified time.

    exception

    ReferenceError Raised if [variable] is null.

    Parameters

    • variable: Variable

      The variable to instantiate.

    • value: number

      The instantiated value.

    • time: number | null

      The time associated with the variable. Can be null.

    Returns CLGaussian

    The instantiated distribution.

instantiateDiscrete

  • instantiateDiscrete(discreteValues: number[]): CLGaussian
  • Instantiates discrete variables.

    Parameters

    • discreteValues: number[]

      A discrete value (or null) for each discrete variable in the Gaussian table.

    Returns CLGaussian

    The instantiated distribution.

instantiateHead

  • instantiateHead(variable: Variable, value: number, time: number | null): CLGaussian
  • instantiateHead(variable: Variable, value: number, time: number | null, logPdf: number[]): CLGaussian
  • instantiateHead(headValues: number[], logPdf: number[]): Table
  • Calculates the distribution which results from instantiating a particular continuous head variable at a specified time.

    exception

    ReferenceError Raised if [variable] is null.

    Parameters

    • variable: Variable

      The variable to instantiate.

    • value: number

      The instantiated value.

    • time: number | null

      The time associated with the variable. Can be null.

    Returns CLGaussian

    The instantiated distribution.

  • Calculates the distribution which results from instantiating a particular continuous head variable at a specified time.

    exception

    ReferenceError Raised if [variable] is null.

    Parameters

    • variable: Variable

      The variable to instantiate.

    • value: number

      The instantiated value.

    • time: number | null

      The time associated with the variable. Can be null.

    • logPdf: number[]

      A buffer of length {@link com.bayesserver.Table#size}that is filled with the log of the pdf values calculated during instantiation. Can be null.

    Returns CLGaussian

    The instantiated distribution.

  • Instantiates all continuous head variable contexts.

    Parameters

    • headValues: number[]

      The values for the continuous head variable contexts.

    • logPdf: number[]

      Optional array of length {@link com.bayesserver.Table#size} that is filled with the logged pdf values, useful when pdf values are zero.

    Returns Table

    The instantiated distribution.

instantiateHeads

  • instantiateHeads(headValues: number[], logPdf: number[]): IDistribution
  • Instantiates continuous head variable contexts.

    Parameters

    • headValues: number[]

      The value (or null) for each continuous head variable context.

    • logPdf: number[]

      Optional array of length {@link com.bayesserver.Table#size} that is filled with the logged pdf values, useful when pdf values are zero.

    Returns IDistribution

    The instantiated distribution.

instantiateTails

  • instantiateTails(tailValues: number[]): CLGaussian
  • Calculates the distribution which results from instantiating continuous tail variables.

    Parameters

    • tailValues: number[]

      The value (or null) for each continuous tail.

    Returns CLGaussian

    The instantiated distribution.

isReadOnly

  • isReadOnly(): boolean

marginalize

  • Marginalizes (integrates) the [superset] into this instance.

    exception

    ReferenceError Raised if [superset] is null.

    exception

    Error Raised if this instance is read only, or if any variables are no longer correctly due to modifications of the network.

    exception

    Error Raised if [superset] does not contain all the variables in this instance.

    Parameters

    • superset: IDistribution

      A distribution whose variables form a superset of the variables in this instance.

    Returns void

  • Marginalizes (integrates) the [superset] into this instance.

    exception

    ReferenceError Raised if [superset] is null.

    exception

    Error Raised if this instance is read only, or if any variables are no longer correctly due to modifications of the network.

    exception

    Error Raised if [superset] does not contain all the variables in this instance.

    Parameters

    • superset: IDistribution

      A distribution whose variables form a superset of the variables in this instance.

    • propagation: PropagationMethod

      The propagation method to use during marginalization.

    Returns void

  • Marginalizes (sums/integrates) the [superset] into this instance.

    exception

    ReferenceError Raised if [superset] is null.

    exception

    Error Raised if this instance is read only, or if any variables are no longer sorted correctly due to modifications of the network.

    exception

    Error Raised if [superset] does not contain all the variables in this instance.

    Parameters

    • superset: CLGaussian

      A {@link com.bayesserver.CLGaussian} whose variables form a superset of the variables in this instance.

    Returns void

marginalizeTo

  • Marginalizes (sums/integrates) out all continuous variables from this instance into the specified table.

    exception

    ReferenceError Raised if [table] is null.

    Parameters

    • table: Table

      A {@link com.bayesserver.Table} whose variables form a subset of discrete variables in this instance.

    Returns void

  • Marginalizes (sums/integrates) out all continuous variables from this instance into the specified table.

    exception

    ReferenceError Raised if [table] is null.

    Parameters

    • table: Table

      A {@link com.bayesserver.Table} whose variables form a subset of discrete variables in this instance.

    • propagation: PropagationMethod

      The propagation method to use during marginalization.

    Returns void

multiply

  • Multiplies this instance by another {@link com.bayesserver.CLGaussian} distribution.

    exception

    ReferenceError Raised if [gaussian] is null.

    Parameters

    • gaussian: CLGaussian

      The distribution to combine.

    Returns CLGaussian

    The combined distribution.

  • Multiplies this instance by another distribution.

    exception

    ReferenceError Raised if [distribution] is null.

    Parameters

    Returns IDistribution

    The combined distribution.

reset

  • reset(): void
  • Resets all mean, covariance and weight entries to zero.

    Returns void

setCovariance

  • Sets the covariance value of the Gaussian distribution at the specified [index] in the {@link com.bayesserver.Table} of discrete combinations.

    Parameters

    • index: number

      The index into the discrete table of combinations. If no discrete variables are present in the distribution, index will always be 0.

    • sortedContinuousHeadA: number

      The position of the first continuous head variable.

    • sortedContinuousHeadB: number

      The position of the second continuous head variable.

    • value: number

      The covariance value to copy.

    Returns void

  • Sets the covariance of the Gaussian distribution between [continuousHeadA] and [continuousHeadB] for a particular discrete combination (mixture).

    Parameters

    • continuousHeadA: Variable

      A continuous head variable from H in the expression P(H) or P(H|T).

    • continuousHeadB: Variable

      A second continuous head variable from H in the expression P(H) or P(H|T).

    • value: number

      The covariance value.

    • discrete: State[]

      The discrete combination (mixture). Can be empty if this distribution has no discrete variables (i.e. the Gaussian is not a mixture of Gaussians).

    Returns void

  • Sets the covariance of the Gaussian distribution between [continuousHeadA] and [continuousHeadB] for a particular discrete combination (mixture).

    Parameters

    • continuousHeadA: Variable

      A continuous head variable from H in the expression P(H) or P(H|T).

    • timeA: number | null

      The time of the first continuous head variable, or null if not a temporal variable.

    • continuousHeadB: Variable

      A second continuous head variable from H in the expression P(H) or P(H|T).

    • timeB: number | null

      The time of the second continuous head variable, or null if not a temporal variable.

    • value: number

      The covariance value.

    • discrete: State[]

      The discrete combination (mixture). Can be empty if this distribution has no discrete variables (i.e. the Gaussian is not a mixture of Gaussians).

    Returns void

  • Sets the covariance of the Gaussian distribution between [continuousHeadA] and [continuousHeadB] for a particular discrete combination (mixture).

    Parameters

    • continuousHeadA: VariableContext

      A continuous head variable and time (if any) from H in the expression P(H) or P(H|T).

    • continuousHeadB: VariableContext

      A second continuous head variable and time (if any) from H in the expression P(H) or P(H|T).

    • value: number

      The covariance value.

    • discrete: State[]

      The discrete combination (mixture). Can be empty if this distribution has no discrete variables (i.e. the Gaussian is not a mixture of Gaussians).

    Returns void

  • Sets the covariance of the Gaussian distribution between [continuousHeadA] and [continuousHeadB] for a particular discrete combination (mixture).

    Parameters

    • continuousHeadA: Variable

      A continuous head variable from H in the expression P(H) or P(H|T).

    • continuousHeadB: Variable

      A second continuous head variable from H in the expression P(H) or P(H|T).

    • value: number

      The covariance value.

    • discrete: StateContext[]

      The discrete combination (mixture). Can be empty if this distribution has no discrete variables (i.e. the Gaussian is not a mixture of Gaussians).

    Returns void

  • Sets the covariance of the Gaussian distribution between [continuousHeadA] and [continuousHeadB] for a particular discrete combination (mixture).

    Parameters

    • continuousHeadA: Variable

      A continuous head variable from H in the expression P(H) or P(H|T).

    • timeA: number | null

      The time of the first continuous head variable, or null if not a temporal variable.

    • continuousHeadB: Variable

      A second continuous head variable from H in the expression P(H) or P(H|T).

    • timeB: number | null

      The time of the second continuous head variable, or null if not a temporal variable.

    • value: number

      The covariance value.

    • discrete: StateContext[]

      The discrete combination (mixture). Can be empty if this distribution has no discrete variables (i.e. the Gaussian is not a mixture of Gaussians).

    Returns void

  • Sets the covariance of a Gaussian distribution with no discrete variables between [continuousHeadA] and [continuousHeadB]

    Parameters

    • continuousHeadA: Variable

      A continuous head variable from H in the expression P(H) or P(H|T).

    • timeA: number | null

      The time of the first continuous head variable, or null if not a temporal variable.

    • continuousHeadB: Variable

      A second continuous head variable from H in the expression P(H) or P(H|T).

    • timeB: number | null

      The time of the second continuous head variable, or null if not a temporal variable.

    • value: number

      The covariance value.

    Returns void

  • Sets the covariance of a Gaussian distribution with no discrete variables between [continuousHeadA] and [continuousHeadB]

    Parameters

    • continuousHeadA: Variable

      A continuous head variable from H in the expression P(H) or P(H|T).

    • continuousHeadB: Variable

      A second continuous head variable from H in the expression P(H) or P(H|T).

    • value: number

      The covariance value.

    Returns void

  • Sets the covariance of the Gaussian distribution between [continuousHeadA] and [continuousHeadB] for a particular discrete combination (mixture).

    Parameters

    • continuousHeadA: VariableContext

      A continuous head variable and time (if any) from H in the expression P(H) or P(H|T).

    • continuousHeadB: VariableContext

      A second continuous head variable and time (if any) from H in the expression P(H) or P(H|T).

    • value: number

      The covariance value.

    • discrete: StateContext[]

      The discrete combination (mixture). Can be empty if this distribution has no discrete variables (i.e. the Gaussian is not a mixture of Gaussians).

    Returns void

  • Sets the covariance of a Gaussian distribution with no discrete variables between [continuousHeadA] and [continuousHeadB].

    Parameters

    • continuousHeadA: VariableContext

      A continuous head variable and time (if any) from H in the expression P(H) or P(H|T).

    • continuousHeadB: VariableContext

      A second continuous head variable and time (if any) from H in the expression P(H) or P(H|T).

    • value: number

      The covariance value.

    Returns void

  • Sets the covariance of the Gaussian distribution between [continuousHeadA] and [continuousHeadB] for a particular discrete combination (mixture).

    Parameters

    • continuousHeadA: Variable

      A continuous head variable from H in the expression P(H) or P(H|T).

    • continuousHeadB: Variable

      A second continuous head variable from H in the expression P(H) or P(H|T).

    • value: number

      The covariance value.

    • iterator: TableIterator

      The discrete combination (mixture) identified by the position of the iterator.

    Returns void

  • Sets the covariance of the Gaussian distribution between [continuousHeadA] and [continuousHeadB] for a particular discrete combination (mixture).

    Parameters

    • continuousHeadA: Variable

      A continuous head variable from H in the expression P(H) or P(H|T).

    • timeA: number | null

      The time of the first continuous head variable, or null if not a temporal variable.

    • continuousHeadB: Variable

      A second continuous head variable from H in the expression P(H) or P(H|T).

    • timeB: number | null

      The time of the second continuous head variable, or null if not a temporal variable.

    • value: number

      The covariance value.

    • iterator: TableIterator

      The discrete combination (mixture) identified by the position of the iterator.

    Returns void

  • Sets the covariance of the Gaussian distribution between [continuousHeadA] and [continuousHeadB] for a particular discrete combination (mixture).

    Parameters

    • continuousHeadA: VariableContext

      A continuous head variable and time (if any) from H in the expression P(H) or P(H|T).

    • continuousHeadB: VariableContext

      A second continuous head variable and time (if any) from H in the expression P(H) or P(H|T).

    • value: number

      The covariance value.

    • iterator: TableIterator

      The discrete combination (mixture) identified by the position of the iterator.

    Returns void

setMean

  • setMean(index: number, sortedContinuousHead: number, value: number): void
  • setMean(continuousHead: Variable, value: number, discrete: State[]): void
  • setMean(continuousHead: Variable, time: number | null, value: number, discrete: State[]): void
  • setMean(continuousHead: VariableContext, value: number, discrete: State[]): void
  • setMean(continuousHead: Variable, value: number, discrete: StateContext[]): void
  • setMean(continuousHead: Variable, value: number): void
  • setMean(continuousHead: Variable, time: number | null, value: number): void
  • setMean(continuousHead: Variable, time: number | null, value: number, discrete: StateContext[]): void
  • setMean(continuousHead: VariableContext, value: number, discrete: StateContext[]): void
  • setMean(continuousHead: Variable, value: number, iterator: TableIterator): void
  • setMean(continuousHead: Variable, time: number | null, value: number, iterator: TableIterator): void
  • setMean(continuousHead: VariableContext, value: number, iterator: TableIterator): void
  • Sets the mean value of the Gaussian distribution at the specified [index] in the {@link com.bayesserver.Table} of discrete combinations.

    Parameters

    • index: number

      The index into the discrete table of combinations. If no discrete variables are present in the distribution, index will always be 0.

    • sortedContinuousHead: number

      The position of the required continuous head variable.

    • value: number

      The mean value.

    Returns void

  • Sets the mean value of the Gaussian distribution for the specified [continuousHead] variable for the [discrete] combination.

    Parameters

    • continuousHead: Variable

      A continuous head variable from H in the expression P(H) or P(H|T).

    • value: number

      The mean value.

    • discrete: State[]

      The discrete combination (mixture). Can be empty if this distribution has no discrete variables (i.e. the Gaussian is not a mixture of Gaussians).

    Returns void

  • Sets the mean value of the Gaussian distribution for the specified [continuousHead] variable for the [discrete] combination.

    Parameters

    • continuousHead: Variable

      A continuous head variable from H in the expression P(H) or P(H|T).

    • time: number | null

      The time of the continuous head variable, or null if not a temporal variable.

    • value: number

      The mean value.

    • discrete: State[]

      The discrete combination (mixture). Can be empty if this distribution has no discrete variables (i.e. the Gaussian is not a mixture of Gaussians).

    Returns void

  • Sets the mean value of the Gaussian distribution for the specified [continuousHead] variable for the [discrete] combination.

    Parameters

    • continuousHead: VariableContext

      A continuous head variable and time (if any) from H in the expression P(H) or P(H|T).

    • value: number

      The mean value.

    • discrete: State[]

      The discrete combination (mixture). Can be empty if this distribution has no discrete variables (i.e. the Gaussian is not a mixture of Gaussians).

    Returns void

  • Sets the mean value of the Gaussian distribution for the specified [continuousHead] variable for the [discrete] combination.

    Parameters

    • continuousHead: Variable

      A continuous head variable from H in the expression P(H) or P(H|T).

    • value: number

      The mean value.

    • discrete: StateContext[]

      The discrete combination (mixture). Can be empty if this distribution has no discrete variables (i.e. the Gaussian is not a mixture of Gaussians).

    Returns void

  • Sets the mean value of a Gaussian distribution with no discrete variables for the specified [continuousHead] variable.

    Parameters

    • continuousHead: Variable

      A continuous head variable from H in the expression P(H) or P(H|T).

    • value: number

      The mean value.

    Returns void

  • Sets the mean value of a Gaussian distribution with no discrete variables for the specified [continuousHead] variable.

    Parameters

    • continuousHead: Variable

      A continuous head variable from H in the expression P(H) or P(H|T).

    • time: number | null

      The time of the continuous head variable, or null if not a temporal variable.

    • value: number

      The mean value.

    Returns void

  • Sets the mean value of the Gaussian distribution for the specified [continuousHead] variable for the [discrete] combination.

    Parameters

    • continuousHead: Variable

      A continuous head variable from H in the expression P(H) or P(H|T).

    • time: number | null

      The time of the continuous head variable, or null if not a temporal variable.

    • value: number

      The mean value.

    • discrete: StateContext[]

      The discrete combination (mixture). Can be empty if this distribution has no discrete variables (i.e. the Gaussian is not a mixture of Gaussians).

    Returns void

  • Sets the mean value of the Gaussian distribution for the specified [continuousHead] variable for the [discrete] combination.

    Parameters

    • continuousHead: VariableContext

      A continuous head variable and time (if any) from H in the expression P(H) or P(H|T).

    • value: number

      The mean value.

    • discrete: StateContext[]

      The discrete combination (mixture). Can be empty if this distribution has no discrete variables (i.e. the Gaussian is not a mixture of Gaussians).

    Returns void

  • Sets the mean value of the Gaussian distribution for the specified [continuousHead] variable for the discrete combination.

    Parameters

    • continuousHead: Variable

      A continuous head variable from H in the expression P(H) or P(H|T).

    • value: number

      The mean value.

    • iterator: TableIterator

      The discrete combination (mixture) identified by the position of the iterator.

    Returns void

  • Sets the mean value of the Gaussian distribution for the specified [continuousHead] variable for the discrete combination.

    Parameters

    • continuousHead: Variable

      A continuous head variable from H in the expression P(H) or P(H|T).

    • time: number | null

      The time of the continuous head variable, or null if not a temporal variable.

    • value: number

      The mean value.

    • iterator: TableIterator

      The discrete combination (mixture) identified by the position of the iterator.

    Returns void

  • Sets the mean value of the Gaussian distribution for the specified [continuousHead] variable for the discrete combination.

    Parameters

    • continuousHead: VariableContext

      A continuous head variable and time (if any) from H in the expression P(H) or P(H|T).

    • value: number

      The mean value.

    • iterator: TableIterator

      The discrete combination (mixture) identified by the position of the iterator.

    Returns void

setVariance

  • setVariance(index: number, sortedContinuousHead: number, value: number): void
  • setVariance(continuousHead: Variable, value: number, discrete: State[]): void
  • setVariance(continuousHead: Variable, time: number | null, value: number, discrete: State[]): void
  • setVariance(continuousHead: VariableContext, value: number, discrete: State[]): void
  • setVariance(continuousHead: Variable, value: number, discrete: StateContext[]): void
  • setVariance(continuousHead: Variable, value: number): void
  • setVariance(continuousHead: Variable, time: number | null, value: number): void
  • setVariance(continuousHead: Variable, time: number | null, value: number, discrete: StateContext[]): void
  • setVariance(continuousHead: VariableContext, value: number, discrete: StateContext[]): void
  • setVariance(continuousHead: Variable, value: number, iterator: TableIterator): void
  • setVariance(continuousHead: Variable, time: number | null, value: number, iterator: TableIterator): void
  • setVariance(continuousHead: VariableContext, value: number, iterator: TableIterator): void
  • Sets the variance value of the Gaussian distribution at the specified [index] in the {@link com.bayesserver.Table} of discrete combinations.

    Parameters

    • index: number

      The index into the discrete table of combinations. If no discrete variables are present in the distribution, index will always be 0.

    • sortedContinuousHead: number

      The position of the required continuous head variable.

    • value: number

      The variance value to set.

    Returns void

  • Sets the variance of the Gaussian distribution for the specified [continuousHead] variable for a particular discrete combination (mixture).

    Parameters

    • continuousHead: Variable

      A continuous head variable from H in the expression P(H) or P(H|T).

    • value: number

      The variance value.

    • discrete: State[]

      The discrete combination (mixture). Can be empty if this distribution has no discrete variables (i.e. the Gaussian is not a mixture of Gaussians).

    Returns void

  • Sets the variance of the Gaussian distribution for the specified [continuousHead] variable for a particular discrete combination (mixture).

    Parameters

    • continuousHead: Variable

      A continuous head variable from H in the expression P(H) or P(H|T).

    • time: number | null

      The time of the continuous head variable, or null if not a temporal variable.

    • value: number

      The variance value.

    • discrete: State[]

      The discrete combination (mixture). Can be empty if this distribution has no discrete variables (i.e. the Gaussian is not a mixture of Gaussians).

    Returns void

  • Sets the variance of the Gaussian distribution for the specified [continuousHead] variable for a particular discrete combination (mixture).

    Parameters

    • continuousHead: VariableContext

      A continuous head variable and time (if any) from H in the expression P(H) or P(H|T).

    • value: number

      The variance value.

    • discrete: State[]

      The discrete combination (mixture). Can be empty if this distribution has no discrete variables (i.e. the Gaussian is not a mixture of Gaussians).

    Returns void

  • Sets the variance of the Gaussian distribution for the specified [continuousHead] variable for a particular discrete combination (mixture).

    Parameters

    • continuousHead: Variable

      A continuous head variable from H in the expression P(H) or P(H|T).

    • value: number

      The variance value.

    • discrete: StateContext[]

      The discrete combination (mixture). Can be empty if this distribution has no discrete variables (i.e. the Gaussian is not a mixture of Gaussians).

    Returns void

  • Sets the variance of a Gaussian distribution with no discrete variables for the specified [continuousHead] variable.

    Parameters

    • continuousHead: Variable

      A continuous head variable from H in the expression P(H) or P(H|T).

    • value: number

      The variance value.

    Returns void

  • Sets the variance of a Gaussian distribution with no discrete variables for the specified [continuousHead] variable.

    Parameters

    • continuousHead: Variable

      A continuous head variable from H in the expression P(H) or P(H|T).

    • time: number | null

      The time of the continuous head variable, or null if not a temporal variable.

    • value: number

      The variance value.

    Returns void

  • Sets the variance of the Gaussian distribution for the specified [continuousHead] variable for a particular discrete combination (mixture).

    Parameters

    • continuousHead: Variable

      A continuous head variable from H in the expression P(H) or P(H|T).

    • time: number | null

      The time of the continuous head variable, or null if not a temporal variable.

    • value: number

      The variance value.

    • discrete: StateContext[]

      The discrete combination (mixture). Can be empty if this distribution has no discrete variables (i.e. the Gaussian is not a mixture of Gaussians).

    Returns void

  • Sets the variance of the Gaussian distribution for the specified [continuousHead] variable for a particular discrete combination (mixture).

    Parameters

    • continuousHead: VariableContext

      A continuous head variable and time (if any) from H in the expression P(H) or P(H|T).

    • value: number

      The variance value.

    • discrete: StateContext[]

      The discrete combination (mixture). Can be empty if this distribution has no discrete variables (i.e. the Gaussian is not a mixture of Gaussians).

    Returns void

  • Sets the variance of the Gaussian distribution for the specified [continuousHead] variable for a particular discrete combination (mixture).

    Parameters

    • continuousHead: Variable

      A continuous head variable from H in the expression P(H) or P(H|T).

    • value: number

      The variance value.

    • iterator: TableIterator

      The discrete combination (mixture) identified by the position of the iterator.

    Returns void

  • Sets the variance of the Gaussian distribution for the specified [continuousHead] variable for a particular discrete combination (mixture).

    Parameters

    • continuousHead: Variable

      A continuous head variable from H in the expression P(H) or P(H|T).

    • time: number | null

      The time of the continuous head variable, or null if not a temporal variable.

    • value: number

      The variance value.

    • iterator: TableIterator

      The discrete combination (mixture) identified by the position of the iterator.

    Returns void

  • Sets the variance of the Gaussian distribution for the specified [continuousHead] variable for a particular discrete combination (mixture).

    Parameters

    • continuousHead: VariableContext

      A continuous head variable and time (if any) from H in the expression P(H) or P(H|T).

    • value: number

      The variance value.

    • iterator: TableIterator

      The discrete combination (mixture) identified by the position of the iterator.

    Returns void

setWeight

  • Sets the weight/regression coefficient of the Gaussian distribution at the specified [index] in the {@link com.bayesserver.Table} of discrete combinations.

    Parameters

    • index: number

      The index into the discrete table of combinations. If no discrete variables are present in the distribution, index will always be 0.

    • sortedContinuousHead: number

      The position of the required continuous head variable.

    • sortedContinuousTail: number

      The position of the required continuous tail variable.

    • value: number

      The weight to copy.

    Returns void

  • Sets the weight/regression coefficient of the Gaussian distribution between the [continuousTail] and [continuousHead] for a particular discrete combination (mixture).

    Parameters

    • continuousHead: Variable

      A continuous head variable from H in the expression P(H|T).

    • continuousTail: Variable

      A continuous tail variable from T in the expression P(H|T).

    • value: number

      The weight/regression coefficient.

    • discrete: State[]

      The discrete combination (mixture). Can be empty if this distribution has no discrete variables (i.e. the Gaussian is not a mixture of Gaussians).

    Returns void

  • Sets the weight/regression coefficient of the Gaussian distribution between the [continuousTail] and [continuousHead] for a particular discrete combination (mixture).

    Parameters

    • continuousHead: Variable

      A continuous head variable from H in the expression P(H|T).

    • timeHead: number | null

      The time of the continuous head variable, or null if not a temporal variable.

    • continuousTail: Variable

      A continuous tail variable from T in the expression P(H|T).

    • timeTail: number | null

      The time of the continuous tail variable, or null if not a temporal variable.

    • value: number

      The weight/regression coefficient.

    • discrete: State[]

      The discrete combination (mixture). Can be empty if this distribution has no discrete variables (i.e. the Gaussian is not a mixture of Gaussians).

    Returns void

  • Sets the weight/regression coefficient of the Gaussian distribution between the [continuousTail] and [continuousHead] for a particular discrete combination (mixture).

    Parameters

    • continuousHead: VariableContext

      A continuous head variable and associated time (if any) from H in the expression P(H|T).

    • continuousTail: VariableContext

      A continuous tail variable and associated time (if any) from T in the expression P(H|T).

    • value: number

      The weight/regression coefficient.

    • discrete: State[]

      The discrete combination (mixture). Can be empty if this distribution has no discrete variables (i.e. the Gaussian is not a mixture of Gaussians).

    Returns void

  • Sets the weight/regression coefficient of the Gaussian distribution between the [continuousTail] and [continuousHead] for a particular discrete combination (mixture).

    Parameters

    • continuousHead: Variable

      A continuous head variable from H in the expression P(H|T).

    • continuousTail: Variable

      A continuous tail variable from T in the expression P(H|T).

    • value: number

      The weight/regression coefficient.

    • discrete: StateContext[]

      The discrete combination (mixture). Can be empty if this distribution has no discrete variables (i.e. the Gaussian is not a mixture of Gaussians).

    Returns void

  • Sets the weight/regression coefficient of a Gaussian distribution with no discrete variables between the [continuousTail] and [continuousHead].

    Parameters

    • continuousHead: Variable

      A continuous head variable from H in the expression P(H|T).

    • continuousTail: Variable

      A continuous tail variable from T in the expression P(H|T).

    • value: number

      The weight/regression coefficient.

    Returns void

  • Sets the weight/regression coefficient of the Gaussian distribution between the [continuousTail] and [continuousHead] for a particular discrete combination (mixture).

    Parameters

    • continuousHead: Variable

      A continuous head variable from H in the expression P(H|T).

    • timeHead: number | null

      The time of the continuous head variable, or null if not a temporal variable.

    • continuousTail: Variable

      A continuous tail variable from T in the expression P(H|T).

    • timeTail: number | null

      The time of the continuous tail variable, or null if not a temporal variable.

    • value: number

      The weight/regression coefficient.

    • discrete: StateContext[]

      The discrete combination (mixture). Can be empty if this distribution has no discrete variables (i.e. the Gaussian is not a mixture of Gaussians).

    Returns void

  • Sets the weight/regression coefficient of a Gaussian distribution with no discrete variables between the [continuousTail] and [continuousHead].

    Parameters

    • continuousHead: Variable

      A continuous head variable from H in the expression P(H|T).

    • timeHead: number | null

      The time of the continuous head variable, or null if not a temporal variable.

    • continuousTail: Variable

      A continuous tail variable from T in the expression P(H|T).

    • timeTail: number | null

      The time of the continuous tail variable, or null if not a temporal variable.

    • value: number

      The weight/regression coefficient.

    Returns void

  • Sets the weight/regression coefficient of the Gaussian distribution between the [continuousTail] and [continuousHead] for a particular discrete combination (mixture).

    Parameters

    • continuousHead: VariableContext

      A continuous head variable and associated time (if any) from H in the expression P(H|T).

    • continuousTail: VariableContext

      A continuous tail variable and associated time (if any) from T in the expression P(H|T).

    • value: number

      The weight/regression coefficient.

    • discrete: StateContext[]

      The discrete combination (mixture). Can be empty if this distribution has no discrete variables (i.e. the Gaussian is not a mixture of Gaussians).

    Returns void

  • Sets the weight/regression coefficient of the Gaussian distribution between the [continuousTail] and [continuousHead] for a particular discrete combination (mixture).

    Parameters

    • continuousHead: Variable

      A continuous head variable from H in the expression P(H|T).

    • continuousTail: Variable

      A continuous tail variable from T in the expression P(H|T).

    • value: number

      The weight/regression coefficient.

    • iterator: TableIterator

      The discrete combination (mixture) identified by the position of the iterator.

    Returns void

  • Sets the weight/regression coefficient of the Gaussian distribution between the [continuousTail] and [continuousHead] for a particular discrete combination (mixture).

    Parameters

    • continuousHead: Variable

      A continuous head variable from H in the expression P(H|T).

    • timeHead: number | null

      The time of the continuous head variable, or null if not a temporal variable.

    • continuousTail: Variable

      A continuous tail variable from T in the expression P(H|T).

    • timeTail: number | null

      The time of the continuous tail variable, or null if not a temporal variable.

    • value: number

      The weight/regression coefficient.

    • iterator: TableIterator

      The discrete combination (mixture) identified by the position of the iterator.

    Returns void

  • Sets the weight/regression coefficient of the Gaussian distribution between the [continuousTail] and [continuousHead] for a particular discrete combination (mixture).

    Parameters

    • continuousHead: VariableContext

      A continuous head variable and associated time (if any) from H in the expression P(H|T).

    • continuousTail: VariableContext

      A continuous tail variable and associated time (if any) from T in the expression P(H|T).

    • value: number

      The weight/regression coefficient.

    • iterator: TableIterator

      The discrete combination (mixture) identified by the position of the iterator.

    Returns void

timeShift

  • timeShift(units: number): void
  • Shifts any times associated with the distribution variables by the specified number of time units.

    Parameters

    • units: number

      The number of time units to shift. Can be negative if required.

    Returns void

toString

  • toString(): string
  • inheritdoc

    Returns string