ADR algorithm and configuration

Hi Everybody, @brocaar Do you have documentation about ADR algorithm that chirpstack implements? Is thealgorithm that @subgig indicated in the comment before?. Also there is an API documentation?