fn
ndtr
→Tensorndtr(x: Tensor)Standard normal cumulative distribution function.
Evaluates where is a standard normal random variable. Implemented as a thin wrapper around the error function via the textbook identity .
Parameters
xTensorInput tensor; any floating-point dtype.
Returns
Tensor element-wise, same shape and dtype as x;
values lie in (0, 1).
Notes
Definition:
For x deep in the left tail, ndtr underflows to 0 and
losses precision; prefer log_ndtr for log-domain work.
Special values: , ,
.
Examples
>>> import lucid
>>> from lucid.special import ndtr
>>> ndtr(lucid.tensor([-3.0, -1.0, 0.0, 1.0, 3.0]))
Tensor([0.0013, 0.1587, 0.5000, 0.8413, 0.9987])