Tensor.evGt

static Tensor.evGt(v, val)

This static method generates a Tensor representing an observation where a quasi-continuous variable (a pyagrum.DiscretizedVariable with many ticks) takes a value greater than the parameter.

Notes

Parameters:
Returns:

The representation of the evidence as a Tensor.

Return type:

pyagrum.Tensor

Example

import pyagrum as gum

x = gum.fastVariable("x[0:10:5]")
gum.Tensor.evGt(x, 5).tolist()
# [0.0, 0.0, 0.0, 1.0, 1.0]

Class

Tensor