Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MutualInformation

Calculates mutual information or conditional mutual information, which measures the dependence between two variables.

Hierarchy

  • MutualInformation

Index

Methods

Methods

Static calculate

  • Measures the dependence between two variables.

    Parameters

    Returns number

    The mutual information value.

  • Calculates mutual information or conditional mutual information, which measures the dependence between two variables.

    Parameters

    • joint: IDistribution

      The joint distribution over two or more variables.

    • x: VariableContext

      X in the expression I(X,Y) or I(X,Y|Z).

    • y: VariableContext

      Y in the expression I(X,Y) or I(X,Y|Z).

    • conditionOn: IList<VariableContext>

      Any conditional variables. I.e. Z in the expression I(X,Y|Z) when calculating conditional mutual information.

    • logarithmBase: LogarithmBase

      The logarithm base to use for the calculations.

    Returns number

    The mutual information value.

  • Calculates mutual information or conditional mutual information, which measures the dependence between two variables.

    Parameters

    Returns number

    The mutual information value.