Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IEvidence

Represents the evidence, or case data (e.g. row in a database) used in a {@link com.bayesserver.inference.IInference#query query}.

Evidence is always associated with a particular network, however if necessary can be detached or attached to an instance of an inference engine. This has the follwing advantages: - Evidence can be set before an inference engine is created, or retained when an inference engine is destroyed. - Evidence can be switched between inference engines. - An inference engine can switch between different evidence instances.

Hierarchy

  • IEvidence

Implemented by

Index

Properties

_1b3c77a7ef11437c93c3830de82e7500

_1b3c77a7ef11437c93c3830de82e7500: string

logWeight

logWeight: number

network

network: Network

size

size: number

weight

weight: number

Methods

beginUpdate

  • beginUpdate(): void
  • Returns void

clear

  • clear(): void
  • clear(variable: Variable): void
  • clear(variable: Variable, time: number | null): void
  • clear(node: Node, time: number | null): void
  • clear(node: Node): void
  • Returns void

  • Parameters

    Returns void

  • Parameters

    • variable: Variable
    • time: number | null

    Returns void

  • Parameters

    • node: Node
    • time: number | null

    Returns void

  • Parameters

    Returns void

copy

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

endUpdate

  • endUpdate(): void
  • Returns void

get

  • get(variable: Variable): number | null
  • get(variable: Variable, time: number | null): number | null
  • get(variable: Variable, destination: number[], destinationStart: number, startTime: number, count: number): void
  • get(node: Node, destination: number[], destinationStart: number, startTime: number, count: number): void
  • get(node: Node): number | null
  • get(node: Node, time: number | null): number | null
  • Parameters

    Returns number | null

  • Parameters

    • variable: Variable
    • time: number | null

    Returns number | null

  • Parameters

    • variable: Variable
    • destination: number[]
    • destinationStart: number
    • startTime: number
    • count: number

    Returns void

  • Parameters

    • node: Node
    • destination: number[]
    • destinationStart: number
    • startTime: number
    • count: number

    Returns void

  • Parameters

    Returns number | null

  • Parameters

    • node: Node
    • time: number | null

    Returns number | null

getEvidenceType

getMaxTime

  • getMaxTime(variable: Variable): number | null
  • getMaxTime(): number | null
  • Parameters

    Returns number | null

  • Returns number | null

getState

  • getState(variable: Variable): number | null
  • getState(variable: Variable, time: number | null): number | null
  • getState(node: Node): number | null
  • getState(node: Node, time: number | null): number | null
  • Parameters

    Returns number | null

  • Parameters

    • variable: Variable
    • time: number | null

    Returns number | null

  • Parameters

    Returns number | null

  • Parameters

    • node: Node
    • time: number | null

    Returns number | null

getStates

  • getStates(variable: Variable, buffer: number[]): void
  • getStates(node: Node, buffer: number[]): void
  • getStates(variable: Variable, buffer: number[], time: number | null): void
  • getStates(node: Node, buffer: number[], time: number | null): void
  • getStates(table: Table): void
  • Parameters

    Returns void

  • Parameters

    • node: Node
    • buffer: number[]

    Returns void

  • Parameters

    • variable: Variable
    • buffer: number[]
    • time: number | null

    Returns void

  • Parameters

    • node: Node
    • buffer: number[]
    • time: number | null

    Returns void

  • Parameters

    Returns void

getVariables

  • getVariables(buffer: Variable[]): void
  • Parameters

    Returns void

set

  • set(variable: Variable, value: number | null): void
  • set(variable: Variable, value: number | null, time: number | null): void
  • set(node: Node, value: number | null, time: number | null): void
  • set(variable: Variable, source: number[], sourceStart: number, startTime: number, count: number): void
  • set(node: Node, source: number[], sourceStart: number, startTime: number, count: number): void
  • set(node: Node, value: number | null): void
  • Parameters

    • variable: Variable
    • value: number | null

    Returns void

  • Parameters

    • variable: Variable
    • value: number | null
    • time: number | null

    Returns void

  • Parameters

    • node: Node
    • value: number | null
    • time: number | null

    Returns void

  • Parameters

    • variable: Variable
    • source: number[]
    • sourceStart: number
    • startTime: number
    • count: number

    Returns void

  • Parameters

    • node: Node
    • source: number[]
    • sourceStart: number
    • startTime: number
    • count: number

    Returns void

  • Parameters

    • node: Node
    • value: number | null

    Returns void

setState

  • setState(variable: Variable, state: number | null): void
  • setState(variable: Variable, state: number | null, time: number | null): void
  • setState(state: State): void
  • setState(state: State, time: number | null): void
  • setState(node: Node, state: number | null): void
  • setState(node: Node, state: number | null, time: number | null): void
  • Parameters

    • variable: Variable
    • state: number | null

    Returns void

  • Parameters

    • variable: Variable
    • state: number | null
    • time: number | null

    Returns void

  • Parameters

    Returns void

  • Parameters

    • state: State
    • time: number | null

    Returns void

  • Parameters

    • node: Node
    • state: number | null

    Returns void

  • Parameters

    • node: Node
    • state: number | null
    • time: number | null

    Returns void

setStates

  • setStates(variable: Variable, values: number[]): void
  • setStates(node: Node, values: number[]): void
  • setStates(variable: Variable, values: number[], time: number | null): void
  • setStates(node: Node, values: number[], time: number | null): void
  • Parameters

    Returns void

  • Parameters

    • node: Node
    • values: number[]

    Returns void

  • Parameters

    • variable: Variable
    • values: number[]
    • time: number | null

    Returns void

  • Parameters

    • node: Node
    • values: number[]
    • time: number | null

    Returns void