File:Rastrigin function.png

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

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

Captions

Captions

Add a one-line explanation of what this file represents

Summary

[edit]
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

[edit]
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.

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 (talk | contribs){{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

There are no pages that use this file.

File usage on other wikis

The following other wikis use this file: