摘要

Clastic sediment grains have been exposed to numerous physical and chemical processes during erosion, transport and accumulation. It is widely accepted that weathering and sorting processes are strongly controlled by climate, making grain-size distributions a potential recorder for paleoenvironmental conditions. Polymodal grain-size distributions of sediments are in general a result of mixing of unimodal grain-size distributions (end members) from different sources. Thus, unmixing of polymodal grain-size distributions into their unimodal end member compositions (end member modeling) provides a powerful method for revealing sediment sources and environmental conditions of the past. Since the early 1960s, several algorithms for unmixing of such compositional data were published. However no source code is available in a modern open access programming language. This study provides an algorithm and some additional functions for the decomposition of compositional data into end-member compositions based on a free available statistical programming language. The source code is provided as supplementary materials. To prove the functionality of the algorithm, end member models of sandstone compositions and grain-size distributions were calculated.