This code is part of the "Comparison of K-Means and Model-Based Clustering methods for drill core pseudo-log generation based on X-Ray Fluorescence Data" written by researchers of the Directory of Geology and Mineral Resources from the Geological Survey of Brazil – CPRM.