From c4eb9f06f0744795d998fddf6544d4ec3340c702 Mon Sep 17 00:00:00 2001 From: MarcoRianiUNIPR Date: Fri, 24 May 2024 11:50:24 +0200 Subject: [PATCH] Added example with CHI2 distribution --- toolbox/graphics/distribspec.m | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/toolbox/graphics/distribspec.m b/toolbox/graphics/distribspec.m index 75ae74ddf..66226c484 100644 --- a/toolbox/graphics/distribspec.m +++ b/toolbox/graphics/distribspec.m @@ -471,6 +471,15 @@ %} +%{ + % Exmple with the Chi2 distribution with v degrees of freedom. + % Set the degrees of freedom. + v=6; + % Create the Chi2 with v degrees of freedom + pd = makedist('Gamma','a',v/2,'b',2); + p= distribspec(pd,[icdf(pd,0.05) icdf(pd,0.95)]) +%} + %% Beginning of code fittedUsingKernel = false;