
Returns the centers of the intervals based on
1D points in Yp
parameterized by Yp
is a vector
of 1D points, not necessarily sorted.
See also (ceyhan:metrika-2012,ceyhan:revstat-2016;textualpcds).
centersMc(Yp, c = 0.5)
(parameterized) centers of the intervals
based on Yp
points as a vector
A vector
real numbers that constitute the end points of intervals.
A positive real number in c=.5
.
For the interval, int
Elvan Ceyhan
centerMc
# \donttest{
n<-10
c<-.4 #try also c<-runif(1)
Yp<-runif(n)
centersMc(Yp,c)
c<-.3 #try also c<-runif(1)
Yp<-runif(n,0,10)
centersMc(Yp,c)
# }
Run the code above in your browser using DataLab