Learn R Programming

pcds (version 0.1.8)

print.NumArcs: Print a NumArcs object

Description

Prints the call of the object of class "NumArcs" and also the desc (i.e. a brief description) of the output.

Usage

# S3 method for NumArcs
print(x, ...)

Value

The call of the object of class "NumArcs"

and also the desc (i.e. a brief description) of the output: number of arcs in the proximity catch digraph (PCD) and related quantities in the induced subdigraphs for points in the Delaunay cells.

Arguments

x

A NumArcs object.

...

Additional arguments for the S3 method 'print'.

See Also

summary.NumArcs, print.summary.NumArcs, and plot.NumArcs

Examples

Run this code
# \donttest{
nx<-15; ny<-5;  #try also nx<-40; ny<-10 or nx<-1000; ny<-10;

set.seed(1)
Xp<-cbind(runif(nx),runif(nx))
Yp<-cbind(runif(ny,0,.25),runif(ny,0,.25))+cbind(c(0,0,0.5,1,1),c(0,1,.5,0,1))
#try also Yp<-cbind(runif(ny,0,1),runif(ny,0,1))

M<-"CC"  #try also M<-c(1,1,1)

Narcs<-num.arcsAS(Xp,Yp,M)
Narcs
print(Narcs)

typeof(Narcs)
attributes(Narcs)
# }

Run the code above in your browser using DataLab