ChangeVector: per pixel (row) magnitude
\(\sqrt{\sum_k (a_k - b_k)^2}\) and, for two bands, direction in
degrees (Malila 1980). AccuracyAssessment: confusion matrix (rows
predicted, columns reference), overall accuracy, Cohen's kappa,
producer's and user's accuracies (Congalton 1991).
Usage
ChangeVector(before, after)
AccuracyAssessment(reference, predicted)
Arguments
- before, after
Matrices (pixels x bands).
- reference, predicted
Class labels.
References
Congalton, R. G. (1991). A review of assessing the accuracy
of classifications of remotely sensed data. Remote Sensing of
Environment 37, 35-46.
Examples
ChangeVector(rbind(c(0.1, 0.3)), rbind(c(0.4, 0.7)))
#> $magnitude
#> [1] 0.5
#>
#> $direction
#> [1] 53.1301
#>
AccuracyAssessment(c(1, 1, 2, 2, 2, 1), c(1, 2, 2, 2, 1, 1))$kappa
#> [1] 0.3333333