1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
<?xml version="1.0" encoding="UTF-8"?>
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="smooth" xml:lang="ja">
<refnamediv>
<refname>smooth</refname>
<refpurpose>スプライン関数によるスムージング</refpurpose>
</refnamediv>
<refsynopsisdiv>
<title>呼出し手順</title>
<synopsis>[pt]=smooth(ptd [,step])</synopsis>
</refsynopsisdiv>
<refsection>
<title>パラメータ</title>
<variablelist>
<varlistentry>
<term>ptd</term>
<listitem>
<para>(2xn) 実数ベクトル</para>
</listitem>
</varlistentry>
<varlistentry>
<term>step</term>
<listitem>
<para>実数 (横軸の刻み離散値)</para>
</listitem>
</varlistentry>
<varlistentry>
<term>pt</term>
<listitem>
<para>(2xn) 実数ベクトル</para>
</listitem>
</varlistentry>
</variablelist>
</refsection>
<refsection>
<title>説明</title>
<para>
この関数は,指定した点集合についてスプライン関数により補間を行います.
座標は,<literal>(ptd(1,i),ptd(2,i))</literal>です.
要素
<literal>ptd(1,:)</literal> は昇順とする必要があります. 刻みのデフォルト値は
<literal>abs(maxi(ptd(1,:))-mini(ptd(1,:)))/100</literal>です.
</para>
</refsection>
<refsection>
<title>例</title>
<programlisting role="example"><![CDATA[
x=[1 10 20 30 40];
y=[1 30 -10 20 40];
plot2d(x',y',[3],"011"," ",[-10,-40,50,50]);
yi=smooth([x;y],0.1);
plot2d(yi(1,:)',yi(2,:)',[1],"000");
]]></programlisting>
</refsection>
<refsection role="see also">
<title>参照</title>
<simplelist type="inline">
<member>
<link linkend="splin">splin</link>
</member>
<member>
<link linkend="interp">interp</link>
</member>
<member>
<link linkend="interpln">interpln</link>
</member>
</simplelist>
</refsection>
</refentry>
|