Support for Area-weighted post-classification accuracy
.sits_accuracy_area_assess(cube, error_matrix, area)
A data cube
A matrix given in sample counts. Columns represent the reference data and rows the results of the classification
A named vector of the total area of each class on the map
A list of lists: The error_matrix, the class_areas, the unbiased estimated areas, the standard error areas, confidence interval 95 and the accuracy (user, producer, and overall).
Olofsson, P., Foody G.M., Herold M., Stehman, S.V., Woodcock, C.E., Wulder, M.A. (2014) Good practices for estimating area and assessing accuracy of land change. Remote Sensing of Environment, 148, pp. 42-57.