centerMc {pcds}R Documentation

Parameterized center of an interval

Description

Returns the (parameterized) center, M_c, of the interval, int=(a,b), 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 the interval, int=(a,b), the parameterized center is M_c=a+c(b-a).

See also (Ceyhan (2012, 2016)).

Usage

centerMc(int, c = 0.5)

Arguments

int

A vector with two entries representing an interval.

c

A positive real number in (0,1) parameterizing the center inside int=(a,b) with the default c=.5. For the interval, int=(a,b), the parameterized center is M_c=a+c(b-a).

Value

(parameterized) center inside int

Author(s)

Elvan Ceyhan

References

Ceyhan E (2012). “The Distribution of the Relative Arc Density of a Family of Interval Catch Digraph Based on Uniform Data.” Metrika, 75(6), 761-793.

Ceyhan E (2016). “Density of a Random Interval Catch Digraph Family and its Use for Testing Uniformity.” REVSTAT, 14(4), 349-394.

See Also

centersMc

Examples

c<-.4
a<-0; b<-10
int = c(a,b)
centerMc(int,c)

c<-.3
a<-2; b<-4; int<-c(a,b)
centerMc(int,c)


[Package pcds version 0.1.8 Index]