Tensor.evGt
- static Tensor.evGt(v, val)
This static method generates a Tensor representing an observation where a quasi-continuous variable (a
pyagrum.DiscretizedVariablewith many ticks) takes a value greater than the parameter.Notes
see also
BayesNet.evGt()see also
Tensor.evEq(),Tensor.evLt(),Tensor.evIn()
- Parameters:
var (
pyagrum.DiscretizedVariable) – the variable to usevalue (
float)v (
DiscreteVariable)val (
float)
- Returns:
The representation of the evidence as a
Tensor.- Return type:
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