Programmer Guide/SPU Reference/RANGE: Difference between revisions

From STX Wiki
Jump to navigationJump to search
(initial import)
 
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{DISPLAYTITLE:{{SUBPAGENAME}}}}
{{DISPLAYTITLE:{{SUBPAGENAME}}}}
====RANGE - get min/max values====
Get minimum and maximum value of input <var>A</var>.
 
==<code>[SPU RANGE <var>A</var> OUT <var>MIN MAX</var>]</code>==
=====Usage:=====
{|class="einrahmen"
 
!In !!Out
<code>RANGE <var>A</var></code>
 
=====Inputs:=====
 
{|
|-
|-
|A
|<var>A<sub>number</sub></var>
|number or vector
|<var>MIN</var> = <var>A</var>, <var>MAX</var> = <var>A</var>
|}
 
=====Outputs:=====
 
{|
|-
|<var>MIN</var>
|minimum of A (number)
|-
|-
|MAX
|<var>A<sub>vector</sub></var>
|maximum of A (number)
|<var>MIN</var> = minimum value of <var>A</var>,<BR><var>MAX</var> = maximum value of <var>A</var>
|}
|}
 
;See also:
=====Function:=====
<[[../#Signal Processing Atoms|SP-atoms]]>
 
<!-- AN, 2.5.2011 -->
Find minimum and maximum value of input <var>A</var>.
 
if <var>A</var> is a number:
 
<var>MIN</var> = <var>MAX</var> = <var>A</var>
 
if <var>A</var> is a vector:
 
<var>MIN</var> = Min(<var>A</var>[0], .., <var>A</var>[n-1])
<var>MAX</var> = Max(<var>A</var>[0], .., <var>A</var>[n-1]) ; n = number of elements of <var>A</var>

Latest revision as of 08:35, 6 May 2011

Get minimum and maximum value of input A.

[SPU RANGE A OUT MIN MAX]

In Out
Anumber MIN = A, MAX = A
Avector MIN = minimum value of A,
MAX = maximum value of A
See also

<SP-atoms>

Navigation menu

Personal tools