{'fraction_non_alphanumeric': 0.015217391304347827, 'fraction_numerical': 0.0, 'mean_word_length': 4.941935483870968, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
An algorithm for the compensation of short-period errors in optical encoders

We present a simple way to collect data from an optical position-or-angle encoder with a readout that interpolates values between the optical features, and to process these data to determine the short-range errors that arise from an interpolation process. This is commonly known as generating the compensation function for such an encoder. This process allows the user of data from an encoder to make this correction without relying on undocumented internal algorithms which may be provided by the encoder manufacturer. It can also be used to test built-in algorithms by measuring the residual error when internal algorithms are used. We apply the algorithm to a commercial angular encoder, installed in a goniometer, as an example. The determination of this function on an encoder is critical to provable angle or position metrology efforts.