compare_writer_profiles {handwriterRF} | R Documentation |
Compare Writer Profiles
Description
Compare the writer profiles from two handwritten documents to predict whether they were written by the same person. Use either a similarity score or a score-based likelihood ratio as a comparison method.
Usage
compare_writer_profiles(
writer_profiles,
score_only = TRUE,
rforest = NULL,
reference_scores = NULL
)
Arguments
writer_profiles |
A dataframe of writer profiles or cluster fill rates calculated with get_cluster_fill_rates |
score_only |
TRUE returns only the similarity score. FALSE returns the
similarity score and a score-based likelihood ratio for that score,
calculated using |
rforest |
Optional. A random forest created with |
reference_scores |
Optional. A list of same writer and different writer
similarity scores used for reference to calculate a score-based likelihood
ratio. If reference scores are not supplied, |
Value
A dataframe
Examples
compare_writer_profiles(test[1:2, ], score_only = TRUE)
compare_writer_profiles(test[1:2, ], score_only = FALSE)