{'fraction_non_alphanumeric': 0.021256038647342997, 'fraction_numerical': 0.002898550724637681, 'mean_word_length': 5.023255813953488, '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 Representing Planar Curves in B-Splines

An algorithm for representing planar curves in B-splines is presented in this paper. The representing problem is different from the approximation to data points; planar curve provided more information than data points. To make full use of the information, we propose a three-step representing approach: 1.Sample data points along with their tangent vectors from the planar curve according to the given accuracy. 2. Fit the sampled points by Bezier segments using local interpolation; compose these segments to an interpolation curve. 3. Approximate the interpolation curve using the best least approximation to get the final B-spline curve. Tangent information is used in the second step to construct the interpolation curve. In the third step, the system is always positive because of using the best least square approximation, so we can get more freedoms to approximate the interpolation curve. Finally, some examples of this algorithm demonstrate its usefulness and quality.