Fail:Indicator function illustration.png

Daripada testwiki
Pergi ke pandu arah Pergi ke carian
Fail asli (813 × 516 piksel, saiz fail: 19 KB, jenis MIME: image/png)

Fail ini dari Wikimedia Commons dan mungkin digunakan oleh projek lain. Penerangan pada laman penerangan failnya di sana ditunjukkan di bawah.

Ringkasan

Keterangan
English: Illustration of an Indicator function.
Tarikh (UTC)
Sumber Karya sendiri
Pengarang Oleg Alexandrov
PNG genesis
InfoField
 This diagram was created with MATLAB.

Perlesenan

Public domain Saya selaku pemegang hak cipta karya ini melepaskan karya ini ke dalam domain awam di seluruh dunia.
Di sesetengah negara, undang-undangnya mungkin tidak mengizinkan; jika begitu:
Saya memberi sesiapa sahaja hak untuk menggunakan karya ini untuk apa jua tujuan, tanpa sebarang syarat, melainkan undang-undang menetapkan syarat-syarat sedemikian.

Source code (MATLAB)

% illustration of an indicator function in two dimensions
function main()

   % the number of data points. More points means prettier picture.
   N = 400;

   % a function close to what we want, but not smooth
   Z = get_step_function (N);

% plot the surface
   figure(2); clf; hold on; axis equal; axis off;
   scale = 100;
   surf(scale*Z);
   
% make the surface beautiful
   shading interp;
   colormap autumn;

% add in a source of light
   camlight (-50, 54);
   
% viewing angle
   view(-40, 38);

   % save as png
   print('-dpng', '-r200', 'Indicator_function_illustration.png');

  
% get a function which is 1 on a set, and 0 outside of it
function Z = get_step_function(N)
   XX = linspace(-1.5, 4, N);
   YY = linspace(-4, 4, N);
   [X, Y] = meshgrid(XX, YY);
   
   c = 2;
   k=1.2;
   shift=10;
   Z = (c^2-X.^2-Y.^2).^2 + k*(c-X).^3-shift;
   
   Z =1-max(sign(Z), 0);
This math image could be re-created using vector graphics as an SVG file. This has several advantages; see Commons:Media for cleanup for more information. If an SVG form of this image is available, please upload it and afterwards replace this template with {{vector version available|new image name}}.
It is recommended to name the SVG file “Indicator function illustration.svg”—then the template Vector version available (or Vva) does not need the new image name parameter.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

menggambarkan

27 September 2007

19,793 bait

516 piksel

813 piksel

media type Inggeris

image/png

60e2a55c65183a7cb6107041596113729cb009a8

Sejarah fail

Klik pada tarikh/waktu untuk melihat rupa fail tersebut pada waktu itu.

Tarikh/WaktuGambar kenitUkuranPenggunaKomen
semasa02:49, 27 September 2007Gambar kenit bagi versi pada 02:49, 27 September 2007813 × 516 (19 KB)wikimediacommons>Oleg Alexandrov{{Information |Description=Illustration of an en:Indicator function. |Source=self-made with MATLAB, source code below |Date=~~~~~ |Author= Oleg Alexandrov }} <pre><nowiki> % illustration of an indicator function in two dime

Laman berikut menggunakan fail ini: