centersMc | R Documentation |
Returns the centers of the intervals based on
1D points in Yp
parameterized by c \in (0,1)
so that 100c
% of the length of interval is to the left of M_c
and 100(1-c)
% of the length of the interval
is to the right of M_c
. That is, for an interval (a,b)
,
the parameterized center is M_c=a+c(b-a)
Yp
is a vector
of 1D points, not necessarily sorted.
See also (\insertCiteceyhan:metrika-2012,ceyhan:revstat-2016;textualpcds).
centersMc(Yp, c = 0.5)
Yp |
A |
c |
A positive real number in |
(parameterized) centers of the intervals
based on Yp
points as a vector
Elvan Ceyhan
centerMc
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.