<?xml version="1.0" encoding="ISO-8859-1"?>
<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="en" xml:id="plq_isEqual">
  <info>
    <pubdate>14-May-2010</pubdate>
  </info>

  <refnamediv>
    <refname>plq_isEqual</refname>
    <refpurpose>Piecewise linear quadratic (plq), Model equivalence test</refpurpose>
  </refnamediv>

   <refsynopsisdiv>
     <title>Calling Sequence</title>
     <synopsis>b = plq_isEqual(plqf, plqg)</synopsis>
   </refsynopsisdiv>

   <refsection>
     <title>Parameters</title>
     <variablelist>

       <varlistentry>
         <term>plqf</term>
         <listitem>
           <para>matrix.  A PLQ function with dimensions n x 4.</para>
         </listitem>
       </varlistentry>

       <varlistentry>
         <term>plqg</term>
         <listitem>
           <para>matrix.  A PLQ function with dimensions n' x 4.</para>
         </listitem>
       </varlistentry>

       <varlistentry>
         <term>b</term>
         <listitem>
           <para>boolean.  Whether or not the models are equivalent.</para>
         </listitem>
       </varlistentry>

     </variablelist>
   </refsection>

   <refsection>
     <title>Description</title>

     <para>
       Accepts two PLQ functions, and returns true if and only if the
       functions are equal, ignoring rounding error and duplicate
       adjacent pieces.
     </para>
   </refsection>

   <refsection>
     <title>Examples</title>
     <programlisting role="example"><![CDATA[
plqf = [%inf 1 0 0];
plqg = [0 1 0 0;%inf 1 0 0];
b = plq_isEqual(plqf, plqg),

eps = 1e-12;
plqf = [%inf 1 0 0];
plqg = [%inf 1+eps eps -eps];
b = plq_isEqual(plqf, plqg),
]]></programlisting>
   </refsection>

   <refsection>
     <title>See Also</title>
     <simplelist type="inline">
       <member><link linkend="gph_function">gph_function</link></member>
   </simplelist></refsection>

   <refsection>
     <title>Authors</title>
     <para>
       <literal>Bryan Gardiner</literal>, University of British Columbia, BC, Canada
     </para>
   </refsection>

</refentry>
