# sg()

Read（33） Label: vector, matrix, sg smoothing,

Description:

Perform SG smoothing on each row of a vector or a matrix.

Syntax:

sg(A,n,m,d)

Note:

The function performs SG smoothing on each row of vector A or matrix A and calculates the nth order derivative by fitting the degree of a polynomial n to a specific number data points m. It returns the smoothing coefficient if A is null, which is a vector of the length of m.

Parameters:

 A A vector or a matrix n Degree of a polynomial that satisfies n

Return value:

A sequence

Example:

 A 1 [[1,2,3,4],[2,3,1,2],[1,1,1,-1],[1,0,-2,-6]] 2 =sg(A1,2,3,3) 3 =sg(A1,2,3) 4 =sg(,2,3)
{"ft_lang_label":"__label__en","ft_lang_prob":0.72339904,"math_prob":0.99947196,"size":790,"snap":"2021-04-2021-17","text_gpt3_token_len":249,"char_repetition_ratio":0.099236645,"word_repetition_ratio":0.026666667,"special_character_ratio":0.3455696,"punctuation_ratio":0.185,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99344724,"pos_list":[0,1,2,3,4,5,6],"im_url_duplicate_count":[null,1,null,2,null,2,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-04-21T18:29:38Z\",\"WARC-Record-ID\":\"<urn:uuid:d19b25bf-f8bb-43c4-bf0b-effa8f2c97e9>\",\"Content-Length\":\"75097\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:a69ab0e6-7ee4-4979-b6b7-97d3fad46b45>\",\"WARC-Concurrent-To\":\"<urn:uuid:d18d3d45-c1cd-4258-9476-0cdbfc6c23b0>\",\"WARC-IP-Address\":\"72.14.178.53\",\"WARC-Target-URI\":\"http://doc.raqsoft.com/esproc/func/sg.html\",\"WARC-Payload-Digest\":\"sha1:QJFCLAPJATVW4GFUZPL4SDAKO4CMVF64\",\"WARC-Block-Digest\":\"sha1:ETSCDZWPQIAOSBYWOIAR5ZVNIHSAO4AE\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-17/CC-MAIN-2021-17_segments_1618039546945.85_warc_CC-MAIN-20210421161025-20210421191025-00366.warc.gz\"}"}