Jump to content

File:Rastrigin function.png

Page contents not supported in other languages.
This is a file from the Wikimedia Commons
From Wikipedia, the free encyclopedia

Original file (1,672 × 916 pixels, file size: 106 KB, MIME type: image/png)

Summary

Description
English: Rastrigin Function
Date
Source Own work
Author Diegotorquemada

Created with MATLAB with the following code:


x = linspace(-5.12,5.12,200);
y = linspace(-5.12,5.12,200);

f = @(x,y) 10*2 + x.^2 + y.^2 - 10*cos(2*pi*x) - 10*cos(2*pi*y);

[xx,yy] = meshgrid(x,y);

zz = reshape(f(xx(:),yy(:)), 200, 200);

figure
surfc(xx,yy,zz);
shading interp;

title('Rastrigin function','FontSize',16)
axis([-5.12 5.12 -5.12 5.12 -30 85])

Licensing

Public domain I, the copyright holder of this work, release this work into the public domain. This applies worldwide.
In some countries this may not be legally possible; if so:
I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

9 May 2010

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current01:58, 10 May 2010Thumbnail for version as of 01:58, 10 May 20101,672 × 916 (106 KB)Diegotorquemada{{Information |Description={{en|1=Rastrigin Function}} |Source={{own}} |Author=Diegotorquemada |Date=2010-05-09 |Permission= |other_versions= }} Created with MATLAB with the following code: x = linspace(-5.12,5.12,200); y = linsp

The following page uses this file:

Global file usage

The following other wikis use this file: