R/epan.R

Defines functions pepan depan

depan = function(x)
{
	den=(x>=-1 & x<=1)*(3/4)*(1-x^2)
	return(den)
}

pepan = function(x)
{
	prob=((x>=-1 & x<=1)*((3*x-x^3+2)/4)) + (1*(x>1))
	return(prob)
	
}

Try the SNSequate package in your browser

Any scripts or data that you put into this service are public.

SNSequate documentation built on Dec. 28, 2022, 1:35 a.m.