Learn R Programming

blvim (version 0.1.1)

sim_iterations: Returns the number of iterations used to produce this spatial interaction model

Description

Returns the number of iterations used to produce this spatial interaction model

Usage

sim_iterations(sim, ...)

Value

a number of iterations that may be one if the spatial interaction model has been obtained using a static model (see static_blvim()). In the case of a sim_list

the function returns a vector with iteration number per model.

Arguments

sim

a spatial interaction model object (an object of class sim) or a collection of spatial interaction models (an object of class sim_list)

...

additional parameters

See Also

sim_converged()

Examples

Run this code
distances <- french_cities_distances[1:10, 1:10] / 1000 ## convert to km
production <- log(french_cities$population[1:10])
attractiveness <- log(french_cities$area[1:10])
model <- static_blvim(distances, production, 1.5, 1 / 250, attractiveness)
destination_flow(model)
sim_iterations(model) ## must be one

Run the code above in your browser using DataLab