
Last chance! 50% off unlimited learning
Sale ends in
This function calculates the correlation coefficient between the number of points
in intervals of length
CountingCor(posx, posy, ll, T, method='spearman', lambdax=NULL,
lambday=NULL)
Numeric vector. Occurrence times of the points in the first point process.
Numeric vector. Occurrence times of the points in the second point process.
Numeric value. Lenght of the intervals where the number of points are counted.
Numeric value. Length of the observed period of the point processes.
Character string. Correlation coefficient to be calculated. One of "pearson", "kendall",
or "spearman"; see cor.test
for definitions.
Numeric vector. Intensity vector of the first point process.
Numeric vector. Intensity vector of the second point process.
Estimated correlation.
This function calculates
In order to calculate the number of points in each interval in a process, the function CountP
is used.
# NOT RUN {
#generation of two HPP
aux1<-simNHPc(lambda=rep(0.08,200),fixed.seed=123)
aux2<-simNHPc(lambda=rep(0.12,200),fixed.seed=125)
CountingCor(aux1$posNH, aux2$posNH,ll=20, method="kendall",T=200)
# }
Run the code above in your browser using DataLab