| origin-methods {NetOrigin} | R Documentation |
methods for origin estimation objects of class origin
Description
print produces an output for objects of class origin.
Usage
## S3 method for class 'origin'
print(x, ...)
## S3 method for class 'origin'
summary(object, x = object, ...)
## S3 method for class 'origin'
plot(x, y = "id", start, ...)
## S3 method for class 'origin'
performance(x, start, graph = NULL, ...)
Arguments
x |
object of class |
... |
further arguments to be passed to default |
object |
object of class |
y |
character specifying the variable being plotted at the y-axis; options are |
start |
numeric, giving the node of the true origin |
graph |
|
Value
performance.origin returns a data.frame with variables
-
origin = startrepresenting the true origin, -
estthe estimated node of origin, -
hittlogical indicating whether origin estimation is correct or not, -
rankrank of correct detection, -
spjnumber of segments from estimated origin to true origin (requires anigraphobject), -
distdistance along the shortest path from estimated origin to true origin (igraphedge attributelength)
See Also
Examples
data(ptnGoe)
data(delayGoe)
res <- origin(events=delayGoe[10,-c(1:2)], type='centrality', graph=ptnGoe)
res
summary(res)
plot(res, start=1)
performance(res, start=1, graph=ptnGoe)