Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

fir_sgsmooth (MathScript RT Module Function)

LabVIEW 2011 MathScript RT Module Help

Edition Date: June 2011

Part Number: 373123B-01

»View Product Info

Owning Class: filter design

Requires: MathScript RT Module

Syntax

b = fir_sgsmooth(p, f, w)

b = fir_sgsmooth(p, f)

[b, d] = fir_sgsmooth(p, f, w)

[b, d] = fir_sgsmooth(p, f)

Legacy Name: sgolay

Description

Computes the coefficients of a Savitzky-Golay FIR smoothing filter.

Examples

Inputs

Name Description
p Specifies the order of the polynomial. p must be a positive integer.
f Specifies the number of points to use in fitting. f must be a positive odd integer.
w Specifies the weighting vector. w can be an empty vector or an real vector with length f.

Outputs

Name Description
b Returns the coefficients of the filter.
d Returns the differentiation filters. The i-th column of d is a differentiation filter for derivatives of order i-1.

Details

The following table lists the support characteristics of this function.

Supported in the LabVIEW Run-Time Engine Yes
Supported on RT targets Yes
Suitable for bounded execution times on RT Not characterized

Examples

p = 2;
f = 15;
b = fir_sgsmooth(p, f)

Related Topics

filter_sg


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit