Spaces:
Sleeping

xcos-bot
Deploy snapshot from 23aafd1a (verified archive)
39e01c4
Raw History Blame Contribute Delete
9.57 kB
<?xml version="1.0" encoding="UTF-8"?>
<!--
* Scicos
*
* Copyright (C) INRIA - METALAU Project <scicos@inria.fr> (HTML version)
* Copyright (C) DIGITEO - Scilab Consortium (XML Docbook version)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* See the file ./license.txt
-->
<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:id="MAXMIN" xml:lang="en_US">
<refnamediv>
<refname>MAXMIN</refname>
<refpurpose>Max or min value of a vector, or element-wise for N vectors</refpurpose>
</refnamediv>
<refsection>
<title>Block Screenshot</title>
<inlinemediaobject>
<imageobject>
<imagedata fileref="../../../../images/palettes/MAXMIN.png" align="center"/>
</imageobject>
</inlinemediaobject>
</refsection>
<refsection id="Contents_MAXMIN">
<title>Contents</title>
<itemizedlist>
<listitem>
<xref linkend="Description_MAXMIN">Description</xref>
</listitem>
<listitem>
<xref linkend="Dialogbox_MAXMIN">Parameters</xref>
</listitem>
<listitem>
<xref linkend="Defaultproperties_MAXMIN">Default properties</xref>
</listitem>
<listitem>
<xref linkend="Interfacingfunction_MAXMIN">Interfacing function</xref>
</listitem>
<listitem>
<xref linkend="Computationalfunction_MAXMIN">Computational function</xref>
</listitem>
<listitem>
<xref linkend="Seealso_MAXMIN">See also</xref>
</listitem>
</itemizedlist>
</refsection>
<refsection id="Description_MAXMIN">
<title>Description</title>
<para>
This block finds the minimum/maximum values (parameter
<emphasis role="bold">Min or Max</emphasis>) and accepts one or two inputs depending
on the parameter <emphasis role="bold">Number of input vectors</emphasis> :
</para>
<informaltable border="1" cellpadding="2">
<tr>
<td align="left">
<emphasis role="bold">Number of input vectors</emphasis>
</td>
<td align="left">
<emphasis role="bold">Input</emphasis>
</td>
<td align="left">
<emphasis role="bold">Operation</emphasis>
</td>
</tr>
<tr>
<td align="left">
<emphasis role="bold">1</emphasis>
</td>
<td align="left">Vector</td>
<td align="left">
The input must be a vector and the bloc output is the minimum/maximum value
of the elements of its input vector.
</td>
</tr>
<tr>
<td align="left">
<emphasis role="bold">2</emphasis>
</td>
<td align="left">Scalar</td>
<td align="left">The block output is the minimal or maximal scalar.</td>
</tr>
<tr>
<td align="left">
<emphasis role="bold">2</emphasis>
</td>
<td align="left">Vector</td>
<td align="left">
All p input vectors must have the same length N. The block output is a vector with
the same length N. The element output(i) of the output vector is
min(input_1(i), input_2(i),..,input_p(i)) or
max(input_1(i), input_2(i),..,input_p(i)), for <literal>i=1..N</literal>.
</td>
</tr>
</informaltable>
</refsection>
<refsection id="Dialogbox_MAXMIN">
<title>Parameters</title>
<inlinemediaobject>
<imageobject>
<imagedata fileref="../../../../images/gui/MAXMIN_gui.gif" align="center" style="float:right"/>
<!-- align => Javahelp, style => Online -->
</imageobject>
</inlinemediaobject>
<itemizedlist>
<listitem>
<para>
<emphasis role="bold">Min or Max</emphasis>
</para>
<para> The function (min or max) to apply to the input.</para>
<para> Properties : Type 'vec' of size 1. </para>
</listitem>
<listitem>
<para>
<emphasis role="bold">Number of input vectors</emphasis>
</para>
<para> The number of inputs to the block.</para>
<para> Properties : Type 'vec' of size 1. </para>
</listitem>
<listitem>
<para>
<emphasis role="bold">zero-crossing</emphasis>
</para>
<para> Select to enable zero crossing detection to detect minimum and maximum values.</para>
<para> Properties : Type 'vec' of size 1. </para>
</listitem>
</itemizedlist>
</refsection>
<refsection id="Defaultproperties_MAXMIN">
<title>Default properties</title>
<itemizedlist>
<listitem>
<para>
<emphasis role="bold">always active:</emphasis> no
</para>
</listitem>
<listitem>
<para>
<emphasis role="bold">direct-feedthrough:</emphasis> yes
</para>
</listitem>
<listitem>
<para>
<emphasis role="bold">zero-crossing:</emphasis> no
</para>
</listitem>
<listitem>
<para>
<emphasis role="bold">mode:</emphasis> no
</para>
</listitem>
<listitem>
<para>
<emphasis role="bold">regular inputs:</emphasis>
</para>
<para>
<emphasis role="bold">- port 1 : size [-1,1] / type 1</emphasis>
</para>
</listitem>
<listitem>
<para>
<emphasis role="bold">regular outputs:</emphasis>
</para>
<para>
<emphasis role="bold">- port 1 : size [1,1] / type 1</emphasis>
</para>
</listitem>
<listitem>
<para>
<emphasis role="bold">number/sizes of activation inputs:</emphasis> 0
</para>
</listitem>
<listitem>
<para>
<emphasis role="bold">number/sizes of activation outputs:</emphasis> 0
</para>
</listitem>
<listitem>
<para>
<emphasis role="bold">continuous-time state:</emphasis> no
</para>
</listitem>
<listitem>
<para>
<emphasis role="bold">discrete-time state:</emphasis> no
</para>
</listitem>
<listitem>
<para>
<emphasis role="bold">object discrete-time state:</emphasis> no
</para>
</listitem>
<listitem>
<para>
<emphasis role="bold">name of computational function:</emphasis>
<emphasis role="italic">minmax</emphasis>
</para>
</listitem>
</itemizedlist>
<para/>
</refsection>
<refsection id="Interfacingfunction_MAXMIN">
<title>Interfacing function</title>
<itemizedlist>
<listitem>
<para> SCI/modules/scicos_blocks/macros/NonLinear/MAXMIN.sci</para>
</listitem>
</itemizedlist>
</refsection>
<refsection id="Computationalfunction_MAXMIN">
<title>Computational function</title>
<itemizedlist>
<listitem>
<para> SCI/modules/scicos_blocks/src/c/minmax.c (Type 4)</para>
</listitem>
</itemizedlist>
</refsection>
<refsection xml:id="Seealso_MAXMIN" role="see also">
<title>See also</title>
<simplelist type="inline">
<member>
<link linkend="MIN_f">MIN_f</link>
</member>
<member>
<link linkend="MAX_f">MAX_f</link>
</member>
</simplelist>
</refsection>
</refentry>