<?xml version="1.0" encoding="UTF-8"?>

<!--
 *
 * This help file was generated from distfun_name2func.sci using help_from_sci().
 *
 -->

<refentry version="5.0-subset Scilab" xml:id="distfun_name2func" xml:lang="en"
          xmlns="http://docbook.org/ns/docbook"
          xmlns:xlink="http://www.w3.org/1999/xlink"
          xmlns:svg="http://www.w3.org/2000/svg"
          xmlns:ns3="http://www.w3.org/1999/xhtml"
          xmlns:mml="http://www.w3.org/1998/Math/MathML"
          xmlns:scilab="http://www.scilab.org"
          xmlns:db="http://docbook.org/ns/docbook">

  <refnamediv>
    <refname>distfun_name2func</refname>
    <refpurpose>Returns the distribution function from its name</refpurpose>
  </refnamediv>


<refsynopsisdiv>
   <title>Calling Sequence</title>
   <synopsis>
   f=distfun_name2func("inv",shortname)
   f=distfun_name2func("pdf",shortname)
   f=distfun_name2func("rnd",shortname)
   f=distfun_name2func("cdf",shortname)
   f=distfun_name2func("stat",shortname)
   
   </synopsis>
</refsynopsisdiv>

<refsection>
   <title>Parameters</title>
   <variablelist>
   <varlistentry><term>shortname :</term>
      <listitem><para> a 1-by-1 matrix of strings, the short name of the distribution</para></listitem></varlistentry>
   <varlistentry><term>f :</term>
      <listitem><para> the function corresponding to the given shortname</para></listitem></varlistentry>
   </variablelist>
</refsection>

<refsection>
   <title>Description</title>
   <para>
Returns the distribution function from its name.
   </para>
   <para>
distfun_name2func("inv",shortname) returns
the quantile function corresponding to the
given short name e.g. : distfun_unifpdf if shortname="unif"
   </para>
   <para>
distfun_name2func("pdf",shortname) returns
the pdf function.
   </para>
   <para>
distfun_name2func("cdf",shortname) returns
the cdf function.
   </para>
   <para>
distfun_name2func("rnd",shortname) returns
the rnd function.
   </para>
   <para>
distfun_name2func("stat",shortname) returns
the stat function.
   </para>
   <para>
</para>
</refsection>

<refsection>
   <title>Examples</title>
   <programlisting role="example"><![CDATA[
f=distfun_name2func("inv","norm")
mu=0; sigma=1
// quantile for p=0.7 of Normal(0,1)
f(0.7,mu,sigma) // same as :
distfun_norminv(0.7,mu,sigma)

   ]]></programlisting>
</refsection>

<refsection>
   <title>Authors</title>
   <simplelist type="vert">
   <member>Copyright (C) 2014 - Michael Baudin</member>
   </simplelist>
</refsection>
</refentry>
