S4 generic method to add a hotspot to the density grid
Source:R/generic.functions.R
, R/Density.R
add.hotspot-methods.Rd
Uses a Gaussian decay around a central location to add a hotspot to the density grid.
Usage
add.hotspot(object, centre, sigma, amplitude)
# S4 method for class 'Density'
add.hotspot(object, centre, sigma, amplitude)
Arguments
- object
a
Density-class
object- centre
an x,y-coordinate giving the centre of the hotspot
- sigma
a value giving the scale parameter for a gaussian decay
- amplitude
the height of the hotspot at its centre
Value
the updated Density-class
object