## S3 method for class 'ww_area_of_applicability'predict(object, new_data,...)
Arguments
object: A ww_area_of_applicability object.
new_data: A data frame or matrix of new samples.
...: Not used.
Returns
A tibble of predictions, with two columns: di, numeric, contains the "dissimilarity index" of each point in new_data, while aoa, logical, contains whether a row is inside (TRUE) or outside (FALSE) the area of applicability.
Note that this function is often called using terra::predict(), in which case aoa will be converted to numeric implicitly; 1 values correspond to cells "inside" the area of applicability and 0 corresponds to cells "outside" the AOA.
The number of rows in the tibble is guaranteed to be the same as the number of rows in new_data. Rows with NA predictor values will have NAdi and aoa values.
Details
The function computes the distance indices of the new data and whether or not they are "inside" the area of applicability.