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

<!--
 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
 * Copyright (C) 2008 - INRIA
 *
 * Copyright (C) 2012 - 2016 - Scilab Enterprises
 *
 * This file is hereby licensed under the terms of the GNU GPL v2.0,
 * pursuant to article 5.3.4 of the CeCILL v.2.1.
 * This file was originally licensed under the terms of the CeCILL v2.1,
 * and continues to be available under such terms.
 * For more information, see the COPYING file which you should have received
 * along with this program.
 *
 -->

<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="genmarkov">

    <refnamediv>

        <refname>genmarkov</refname>

        <refpurpose>

            再帰的および一時的なクラスを有するランダムなマルコフ行列を生成する

        </refpurpose>

    </refnamediv>

    <refsynopsisdiv>

        <title>呼び出し手順</title>

        <synopsis>M=genmarkov(rec,tr)

            M=genmarkov(rec,tr,flag)

        </synopsis>

    </refsynopsisdiv>

    <refsection>

        <title>引数</title>

        <variablelist>

            <varlistentry>

                <term>rec</term>

                <listitem>

                    <para>整数行ベクトル (次元は再帰的クラスの数).</para>

                </listitem>

            </varlistentry>

            <varlistentry>

                <term>tr</term>

                <listitem>

                    <para>整数 (一時的な状態量の数)</para>

                </listitem>

            </varlistentry>

            <varlistentry>

                <term>M</term>

                <listitem>

                    <para>実数のマルコフ行列.

                        1に追加する各行のエントリの合計.

                    </para>

                </listitem>

            </varlistentry>

            <varlistentry>

                <term>flag</term>

                <listitem>

                    <para>

                        文字列 <literal>'perm'</literal>. 指定した場合,

                        状態量のランダムな置換が行われます.

                    </para>

                </listitem>

            </varlistentry>

        </variablelist>

    </refsection>

    <refsection>

        <title>説明</title>

        <para>

            それぞれ<literal>rec(1),...rec($)</literal>個のエントリを有する

            <literal>size(rec,1)</literal>個の再帰的なクラスとtr個の一時的な状態量を有する

            ランダムなマルコフ推移確率行列をMに返します.

        </para>

    </refsection>

    <refsection>

        <title>例</title>

        <programlisting role="example"><![CDATA[
//P has two recurrent classes (with 2 and 1 states) 2 transient states
P=genmarkov([2,1],2,'perm')
[perm,rec,tr,indsRec,indsT]=classmarkov(P);
P(perm,perm)
 ]]></programlisting>

    </refsection>

    <refsection role="see also">

        <title>参照</title>

        <simplelist type="inline">

            <member>

                <link linkend="classmarkov">classmarkov</link>

            </member>

            <member>

                <link linkend="eigenmarkov">eigenmarkov</link>

            </member>

        </simplelist>

    </refsection>

</refentry>

