This is the transformation of ACC(). I've compared the results with s2dverification::ACC, and the unit test has also been created. However, this is a complicated function, so I think it's better to ask a user to test it and provide feedback, especially for the bootstrap part.
The code is here: https://earth.bsc.es/gitlab/es/s2dv/-/blob/develop-ACC/R/ACC.R Unit test with sample data: https://earth.bsc.es/gitlab/es/s2dv/-/blob/develop-ACC/tests/testthat/test-ACC.R
Do you have any suggestions for the user review?