SignalProcessing - Maple Programming Help

Home : Support : Online Help : Science and Engineering : Signal Processing : Computing Statistics : SignalProcessing/Norm

SignalProcessing

 Norm
 compute the norm of an array of samples
 NormDifference
 compute the norm of the difference of arrays of samples

 Calling Sequence Norm(A, p) NormDifference(A, B, p)

Parameters

 A, B - Arrays of real or complex numeric values; signals p - (optional) infinity, 1 or 2; type of norm

Description

 • The Norm(A, p) command returns the norm of the array V.
 • The default value of p is infinity. In this case, the maximum of the absolute values of the elements of A is returned.
 • If p is 1, then the ${L}^{1}$ norm of A, defined as the sum of the absolute values of the elements of A, is returned.
 • If p is 2, then the ${L}^{2}$ norm of A is returned. This is defined by the following formula, with $N$ being the number of elements in A.

$\sqrt{{\sum }_{k=1}^{N}{\left|{a}_{k}\right|}^{2}}$

 • The NormDifference(A, B, p) command returns the norm of the difference of the arrays A and B, with p defined as above. A and B must have the same number of elements.
 • Before the code performing the computation runs, Maple converts each input Array to a hardware datatype, first attempting float and subsequently complex, unless it already has one of these datatypes. For this reason, it is most efficient the input Arrays have one of these datatypes beforehand.

 • The SignalProcessing[Norm] and SignalProcessing[NormDifference] commands are thread-safe as of Maple 17.

Examples

 > $\mathrm{with}\left(\mathrm{SignalProcessing}\right):$
 > $a≔\mathrm{Array}\left(\left[1,2,3,4,5\right],'\mathrm{datatype}'={'\mathrm{float}'}_{8}\right)$
 ${a}{≔}\left[\begin{array}{ccccc}{1.}& {2.}& {3.}& {4.}& {5.}\end{array}\right]$ (1)
 > $\mathrm{Norm}\left(a\right)$
 ${5.}$ (2)
 > $\mathrm{Norm}\left(a,\mathrm{∞}\right)$
 ${5.}$ (3)
 > $\mathrm{Norm}\left(a,1\right)$
 ${15.}$ (4)
 > $\mathrm{Norm}\left(a,2\right)$
 ${7.41619848709566298}$ (5)
 > $b≔\mathrm{Array}\left(\left[5,4,3,2,1\right],'\mathrm{datatype}'={'\mathrm{float}'}_{8}\right)$
 ${b}{≔}\left[\begin{array}{ccccc}{5.}& {4.}& {3.}& {2.}& {1.}\end{array}\right]$ (6)
 > $a-b$
 $\left[\begin{array}{ccccc}{-4.}& {-2.}& {0.}& {2.}& {4.}\end{array}\right]$ (7)
 > $\mathrm{NormDifference}\left(a,b\right)$
 ${4.}$ (8)
 > $\mathrm{NormDifference}\left(a,b,\mathrm{∞}\right)$
 ${4.}$ (9)
 > $\mathrm{NormDifference}\left(a,b,1\right)$
 ${12.}$ (10)
 > $\mathrm{NormDifference}\left(a,b,2\right)$
 ${6.32455532033675905}$ (11)

Compatibility

 • The SignalProcessing[Norm] and SignalProcessing[NormDifference] commands were introduced in Maple 17.
 • For more information on Maple 17 changes, see Updates in Maple 17.
{"ft_lang_label":"__label__en","ft_lang_prob":0.78818357,"math_prob":0.99918693,"size":1737,"snap":"2019-35-2019-39","text_gpt3_token_len":454,"char_repetition_ratio":0.16041547,"word_repetition_ratio":0.19884726,"special_character_ratio":0.2947611,"punctuation_ratio":0.11513158,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9994883,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-09-20T12:29:36Z\",\"WARC-Record-ID\":\"<urn:uuid:d8020b79-3ce3-4c72-b716-ffe70f8fdd24>\",\"Content-Length\":\"216455\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:5227dca8-1f9d-425e-9bfb-72d8a6effd58>\",\"WARC-Concurrent-To\":\"<urn:uuid:3fc1c650-a1ea-497b-8197-a33b0f09697f>\",\"WARC-IP-Address\":\"199.71.183.28\",\"WARC-Target-URI\":\"https://de.maplesoft.com/support/help/maplesim/view.aspx?path=SignalProcessing%2FNorm\",\"WARC-Payload-Digest\":\"sha1:F5DHNUUQGFK2FPLB5HSRMKG53DUOPSHL\",\"WARC-Block-Digest\":\"sha1:2NY7IQQOGWPAAN5FKDJIBRKIHOZ2EGVY\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-39/CC-MAIN-2019-39_segments_1568514574018.53_warc_CC-MAIN-20190920113425-20190920135425-00231.warc.gz\"}"}