~ubuntu-branches/ubuntu/raring/scilab/raring-proposed

« back to all changes in this revision

Viewing changes to modules/linear_algebra/help/ja_JP/linear/lsq.xml

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2012-08-30 14:42:38 UTC
  • mfrom: (1.4.7)
  • Revision ID: package-import@ubuntu.com-20120830144238-c1y2og7dbm7m9nig
Tags: 5.4.0-beta-3-1~exp1
* New upstream release
* Update the scirenderer dep
* Get ride of libjhdf5-java dependency

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8"?>
 
2
<!--
 
3
 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
 
4
 * Copyright (C) 2008 - INRIA
 
5
 * 
 
6
 * This file must be used under the terms of the CeCILL.
 
7
 * This source file is licensed as described in the file COPYING, which
 
8
 * you should have received as part of this distribution.  The terms
 
9
 * are also available at    
 
10
 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
 
11
 *
 
12
 -->
 
13
<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" version="5.0-subset Scilab" xml:lang="ja" xml:id="lsq">
 
14
  <refnamediv>
 
15
    <refname>lsq</refname>
 
16
    <refpurpose>線形最小二乗問題.  </refpurpose>
 
17
  </refnamediv>
 
18
  <refsynopsisdiv>
 
19
    <title>呼び出し手順</title>
 
20
    <synopsis>X=lsq(A,B [,tol])</synopsis>
 
21
  </refsynopsisdiv>
 
22
  <refsection>
 
23
    <title>パラメータ</title>
 
24
    <variablelist>
 
25
      <varlistentry>
 
26
        <term>A</term>
 
27
        <listitem>
 
28
          <para>実数または複素数の (m x n) 行列</para>
 
29
        </listitem>
 
30
      </varlistentry>
 
31
      <varlistentry>
 
32
        <term>B</term>
 
33
        <listitem>
 
34
          <para>実数または複素数の (m x p) 行列</para>
 
35
        </listitem>
 
36
      </varlistentry>
 
37
      <varlistentry>
 
38
        <term>tol</term>
 
39
        <listitem>
 
40
          <para>Aの実効ランクを定義するために使用される正のスカラー
 
41
            (Aのピボット操作付きQR分解における最前部にある部分三角行列R11の次数として
 
42
            定義され,条件数の推定値は&lt;= 1/tolとなります.
 
43
            tolのデフォルト値は <literal>sqrt(%eps)</literal>に設定されます )
 
44
          </para>
 
45
        </listitem>
 
46
      </varlistentry>
 
47
      <varlistentry>
 
48
        <term>X</term>
 
49
        <listitem>
 
50
          <para>実数または複素数の (n x p) 行列</para>
 
51
        </listitem>
 
52
      </varlistentry>
 
53
    </variablelist>
 
54
  </refsection>
 
55
  <refsection>
 
56
    <title>説明</title>
 
57
    <para>
 
58
      <literal>X=lsq(A,B)</literal> は方程式 <literal>A*X=B</literal>の
 
59
      最小二乗解の最小ノルムを計算します.
 
60
      一方, <literal>X=A \ B</literal>は
 
61
      各列に最大<literal>rank(A)</literal>個の非ゼロ要素を有する最小二乗解を計算します.
 
62
    </para>
 
63
  </refsection>
 
64
  <refsection>
 
65
    <title>参考文献</title>
 
66
    <para>
 
67
      <literal>lsq</literal> 関数はLApack 関数 DGELSY (実行列の場合)および
 
68
      ZGELSY (複素行列の場合)に基づいています.
 
69
    </para>
 
70
  </refsection>
 
71
  <refsection>
 
72
    <title>例</title>
 
73
    <programlisting role="example"><![CDATA[ 
 
74
//Build the data
 
75
x=(1:10)';
 
76
 
 
77
y1=3*x+4.5+3*rand(x,'normal');
 
78
y2=1.8*x+0.5+2*rand(x,'normal');
 
79
plot2d(x,[y1,y2],[-2,-3])
 
80
//Find the linear regression 
 
81
A=[x,ones(x)];B=[y1,y2];
 
82
X=lsq(A,B);
 
83
 
 
84
y1e=X(1,1)*x+X(2,1);
 
85
y2e=X(1,2)*x+X(2,2);
 
86
plot2d(x,[y1e,y2e],[2,3])
 
87
 
 
88
//Difference between lsq(A,b) and A\b
 
89
A=rand(4,2)*rand(2,3);//a rank 2 matrix
 
90
b=rand(4,1);
 
91
X1=lsq(A,b)
 
92
X2=A\b
 
93
[A*X1-b, A*X2-b] //the residuals are the same
 
94
 ]]></programlisting>
 
95
  </refsection>
 
96
  <refsection role="see also">
 
97
    <title>参照</title>
 
98
    <simplelist type="inline">
 
99
      <member>
 
100
        <link linkend="backslash">backslash</link>
 
101
      </member>
 
102
      <member>
 
103
        <link linkend="inv">inv</link>
 
104
      </member>
 
105
      <member>
 
106
        <link linkend="pinv">pinv</link>
 
107
      </member>
 
108
      <member>
 
109
        <link linkend="rank">rank</link>
 
110
      </member>
 
111
    </simplelist>
 
112
  </refsection>
 
113
</refentry>