Sos: Second-order sections

View source: R/Sos.R

SosR Documentation

Second-order sections

Description

Create or convert filter models to second-order sections form.

Usage

Sos(sos, g = 1)

as.Sos(x, ...)

## S3 method for class 'Arma'
as.Sos(x, ...)

## S3 method for class 'Ma'
as.Sos(x, ...)

## S3 method for class 'Sos'
as.Sos(x, ...)

## S3 method for class 'Zpg'
as.Sos(x, ...)

Arguments

sos

second-order sections representation of the model

g

overall gain factor

x

model to be converted.

...

additional arguments (ignored).

Details

as.Sos converts from other forms, including Arma, Ma, and Zpg.

Value

A list of class Sos with the following list elements:

sos

second-order section representation of the model, returned as an L x 6 matrix, one row for each section 1:L. Each row consists of an [B, A], pair, where B = c(b0, b1, b2), and A = c(1, a1, a2), the filer coefficients for each section. Each b0 entry must be nonzero for each section.

g

overall gain factor that scales any one of the B_i vectors. Default: 1

Author(s)

Geert van Boxtel, G.J.M.vanBoxtel@gmail.com.

See Also

Arma, Ma, Zpg

Examples

ba <- butter(3, 0.2)
sos <- as.Sos(ba)


gjmvanboxtel/gsignal documentation built on Nov. 22, 2023, 8:19 p.m.