similarity.scanpath | R Documentation |
This function computes the similarity between two scanpaths using a specified method.
## S3 method for class 'scanpath'
similarity(
x,
y,
method = c("multimatch"),
window = NULL,
screensize = NULL,
...
)
x |
A data frame containing the first scanpath. |
y |
A data frame containing the second scanpath. |
method |
A character string specifying the method to compute the similarity (default is "multimatch"). |
window |
A numeric vector of length 2 specifying the time window to restrict the fixations in the input scanpaths (default is NULL, which considers all fixations). |
screensize |
A numeric vector of length 2 specifying the dimensions of the screen (e.g., c(1000, 1000)). Required for the "multimatch" method. |
... |
Additional arguments passed to the similarity computation method. |
A numeric value representing the similarity between the two input scanpaths.
Other similarity:
similarity()
# Example usage of the similarity.scanpath function
scanpath1 <- # first scanpath data
scanpath2 <- # second scanpath data
similarity_value <- similarity.scanpath(scanpath1, scanpath2, method = "multimatch", screensize = c(1000, 1000))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.