class

CrySpace::TransferFunction

Inherits Reference < Object

Constructors

butter(order : Int32, wn : Float64) : TransferFunction
Source
butter_digital(order : Int32, wn : Float64, dt : Float64) : TransferFunction
Source
cheby1(order : Int32, rp : Float64, wn : Float64) : TransferFunction
Source
lag_compensator(gain : Float64, zero : Float64, pole : Float64) : TransferFunction
Source
lead_compensator(gain : Float64, zero : Float64, pole : Float64) : TransferFunction
Source
leadlag(zero : Float64, pole : Float64, gain : Float64 = 1.0) : TransferFunction
Source
makeweight(low : Float64, middle : Float64, high : Float64) : TransferFunction
Source
new(num : Float64Tensor, den : Float64Tensor, dt : Float64 | Nil = nil)
Source
notch(w0 : Float64, zeta : Float64) : TransferFunction
Source
pade(delay : Float64, order : Int32 = 1) : TransferFunction

Computes a Pade approximation of a time delay. Returns a TransferFunction approximation of e^(-delay * s).

Source

Class methods

reconstruct_poly(roots : Array(Complex)) : Float64Tensor

Reconstructs polynomial coefficients from its roots.

Source

Instance methods

*(other : TransferFunction)
Source
+(other : TransferFunction)
Source
-(other : TransferFunction)
Source
/(other : TransferFunction)
Source
bode_data(omega : Float64Tensor)
Source
bode_plot(filename : String, omega : Float64Tensor | Nil = nil)

Generates a Bode Plot from the transfer function.

Source
complementary_sensitivity(k : TransferFunction) : TransferFunction
Source
den=(den : Float64Tensor)
Source
dt=(dt : Float64 | Nil)
Source
evaluate(s : Complex) : Complex

Evaluates the transfer function at a complex frequency s (Horner's method).

Source
feedback(other : TransferFunction, sign = -1)
Source
freqresp(omega : Float64Tensor) : Tensor(Complex, CPU(Complex))
Source
jury_test
Source
lowpass_to_bandpass(center_frequency : Float64, bandwidth : Float64) : TransferFunction
Source
lowpass_to_highpass(cutoff_frequency : Float64) : TransferFunction
Source
minreal(tol = 1e-3) : TransferFunction

Minimal realization for transfer function: performs pole-zero cancellation

Source
nichols_data(omega : Float64Tensor)
Source
num=(num : Float64Tensor)
Source
nyquist_data(omega : Float64Tensor)
Source
poles
Source
routh_hurwitz
Source
sensitivity(k : TransferFunction) : TransferFunction
Source
step_plot(filename : String, n_steps = 200)

Generates a Step Response plot from the transfer function.

Source
to_continuous
Source
to_discrete(dt : Float64, method : Symbol = :zoh) : TransferFunction
Source
to_s(io)
Source
to_statespace
Source
zeros
Source