similarity_var: Add similarity var value to a 'sim_fit' object

View source: R/similarity_var.R

similarity_varR Documentation

Add similarity var value to a sim_fit object

Description

Calculate the similarity between a single path generated by sim_fit and the observed path used in the SSM fit. In this context, similarity is calculated using the mean, median, variance, standard deviation, sum, min, or max of a user-supplied variable appended to the observed and simulated tracks.

Usage

similarity_var(track, sim_track, var, FUN = "mean", ...)

Arguments

track

a dataframe containing longitude and latitudes of the observed path used in the SSM fit

sim_track

a dataframe containing the longitude and latitude of a single simulated path from sim_fit

FUN

the function used to summarise the user-supplied variable

Value

a single value representing the similarity between the two paths


ianjonsen/foieGras documentation built on Jan. 17, 2025, 11:15 p.m.