rasenior / ThermStats

Calculate statistics for thermal images in R
Other
3 stars 0 forks source link

Speeding up stats_by_group #3

Closed rasenior closed 5 years ago

rasenior commented 6 years ago

get_patches is what makes stats_by_group very slow, but this is made slow in turn by other functions in other packages (e.g. calculating local G statistics using spdep), and by converting between classes (e.g. dataframe -> matrix -> raster -> polygons). Review ways to make some of these steps faster, or optional.

rasenior commented 5 years ago

get_patches is now optional within stats_by_group, and have taken some steps to speed up get_patches .