peaks


peaks, a Python code which evaluates the peaks() function, obtained by translating and scaling several Gaussian distributions in 2D. It is useful for demonstrating contour plots, surface plots, and optimization algorithms.

Licensing:

The information on this web page is distributed under the MIT license.

Languages:

peaks is available in a Python version.

Related Data and Programs:

humps, a Python code which evaluates the humps() function, its first and second derivatives, and its antiderivative.

Source Code:


Last revised on 19 March 2025.