Phi: The Cumulative distribution function Phi(x) of the Standard...

Description Usage Arguments Value See Also Examples

View source: R/Phi__and__Phi_inv.R

Description

Φ(x):= \int_{-∞}^x \frac{1}{√{2π}} e^{\frac{-x^2}{2}}

Usage

1
Phi(x)

Arguments

x

A real. To be passed to the function stats::pnorm()

Value

Φ(x) := \int _{-∞}^x Gaussian(z|0,1)dz

See Also

Phi_inv()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#========================================================================================
#            1)             validation of this function
#========================================================================================
#'
  x<-0.2
 Phi(x)==stats::pnorm(x)



#========================================================================================
#            1)             Build the data
#========================================================================================
#'

 a  <-  0.1;
 NX <-  222;
 x  <-  runif(100,-11,11)
 y  <-  Phi_inv(exp(a/NX) *Phi(x))-x
 plot(x,y)

 a  <-  0.1;
 NX <-  222;
 x  <-  runif(100,0,11)
 y  <-  Phi_inv(exp(a/NX) *Phi(x))-x
 plot(x,y)


 a  <-  0.1;
 NX <-  222;
 x  <-  runif(100,2,4)
 y  <-  Phi_inv(exp(a/NX) *Phi(x))-x
 plot(x,y)

 a  <-  0.01;
 NX <-  222;
 x  <-  runif(100,2,4);
 y  <-  Phi_inv(exp(a/NX) *Phi(x))-x
 plot(x,y)




 a  <-  0.01;
 NX <-  222;
 x  <-  runif(100,3.5,4);
 y  <-  Phi_inv(exp(a/NX) *Phi(x))-x
 plot(x,y)

BayesianFROC documentation built on Jan. 23, 2022, 9:06 a.m.