关于
This skill offers comprehensive procedural guidance for building Adaptive Rejection Sampling (ARS) systems, focusing on the construction of piecewise linear envelopes for log-density functions. It helps developers navigate the mathematical foundations of log-concave sampling while prioritizing performance optimization, numerical stability, and robust verification strategies. By addressing common pitfalls like infinite loops and poor initialization, the skill ensures that sampling implementations are statistically sound and computationally efficient across various environments including R and Python.