Distribution function of the normal distribution. Equivalent to R's pnorm(q, mean = 0, sd = 1, lower.tail = TRUE, log.p = FALSE).
pnorm(q, mean = 0, sd = 1, lower.tail = TRUE, log.p = FALSE)
Quantile(s): a number, number[] or Float64Array. The result has the same shape.
number[]
Float64Array
mean, sd, lowerTail and logP (see NormalOptions).
mean
sd
lowerTail
logP
The probability (or log probability).
pnorm(1.96); // 0.9750021048517795pnorm(1.96, { lowerTail: false }); // 0.024997895148220435pnorm(new Float64Array([-1, 0, 1])); // Float64Array [0.15865525393145707, 0.5, 0.8413447460685429]pnorm(-40, { logP: true }); // -804.6084420137538 Copy
pnorm(1.96); // 0.9750021048517795pnorm(1.96, { lowerTail: false }); // 0.024997895148220435pnorm(new Float64Array([-1, 0, 1])); // Float64Array [0.15865525393145707, 0.5, 0.8413447460685429]pnorm(-40, { logP: true }); // -804.6084420137538
Distribution function of the normal distribution. Equivalent to R's
pnorm(q, mean = 0, sd = 1, lower.tail = TRUE, log.p = FALSE).