Learn R Programming

rgeoprofile (version 0.2.2)

harm_mean_pred: Calculation of Harmonic Mean for Geographic Profiling

Description

A calculation of the harmonic mean for serial crime analysis. This function is among the centrographic methods which have been used for geographic profiling. The model assumes that the serial perpetrator's home base is relatively central among the crime incidents.

Usage

harm_mean_pred(lat, lon)

Arguments

lat

a vector of latitudes for the crime incident series

lon

a vector of latitudes for the crime incident series

Value

A latitude and longitude point of the harmonic mean of the incidents. This mean can be used to prioritize the area which contains the offender's anchor point.

Examples

Run this code
# NOT RUN {
#Using provided dataset for the Boston Strangler Incidents:
data(desalvo)
harm_mean_pred(desalvo$lat, desalvo$lon)
# }

Run the code above in your browser using DataLab