File:QGaussian2.png

Original file(802 × 563 pixels, file size: 58 KB, MIME type: image/png)

Captions

Captions

Add a one-line explanation of what this file represents

Summary edit

Description
English: Probability densities of multiple members of the q-gaussian family
Date
Source Own work
Author Purple Post-its

Licensing edit

I, the copyright holder of this work, hereby publish it under the following license:
Creative Commons CC-Zero This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication.
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

function plotqgaussian()

x = -4.1:.01:4.1;

figure; hold on;
plot(x, qgaussian(x,0,1), '-r','LineWidth',2)    
plot(x, qgaussian(x,1,1), '-k','LineWidth',2) 
plot(x, qgaussian(x,2,1), '-b','LineWidth',2) 
plot(x, qgaussian(x,2,3), '-g','LineWidth',2) 

function y = qgaussian(x,q,beta)

if q == 1;
    Cq = sqrt(pi);
elseif q < 1
    Cq = 2*sqrt(pi)/((3-q)*sqrt(1-q)) * exp(gammaln(1/(1-q)) - gammaln((3-q)/(2*(1-q))));
else 
    Cq = sqrt(pi)/sqrt(q-1) * exp(gammaln((3-q)/(2*(q-1))) - gammaln(1/(q-1)));    
end

y = sqrt(beta)/Cq * qexp(-beta*x.^2,q);

function y = qexp(x,q)

if q == 1
    y = exp(x);
else
    y = (1+(1-q)*x).^(1/(1-q));
end

y( 1+(1-q)*x <=0 ) = 0;

File history

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

Date/TimeThumbnailDimensionsUserComment
current22:02, 27 June 2011Thumbnail for version as of 22:02, 27 June 2011802 × 563 (58 KB)Purple Post-its (talk | contribs)

The following page uses this file: