Validates the input parameters for diversity index calculation functions. Checks for valid raster types, window sizes, alpha values, and NA tolerance levels.
validateInputs(x, window, alpha = 1, na.tolerance)
None. Throws an error if any input is invalid.
Raster object to be validated.
Size of the moving window for calculations.
Diversity index parameter, default is 1.
Proportion of acceptable NA values within the window (range: 0 to 1).