rcognita.utilities

This module contains auxiliary functions.

Remarks:

  • All vectors are treated as of type [n,]

  • All buffers are treated as of type [L, n] where each row is a vector

  • Buffers are updated from bottom to top

Functions

dss_sim(A, B, C, D, uSqn, x0, y0)

Simulate output response of a discrete-time state-space model.

on_key_press(event, anm)

Key press event handler for a FuncAnimation animation object.

push_vec(matrix, vec)

rej_sampling_rvs(dim, pdf, M)

Random variable (pseudo)-realizations via rejection sampling.

rep_mat(argin, n, m)

Ensures 1D result.

reset_line(line)

to_col_vec(argin)

Convert input to a column vector.

upd_line(line, newX, newY)

upd_scatter(scatter, newX, newY)

upd_text(textHandle, newText)

uptria2vec(mat)

Convert upper triangular square sub-matrix to column vector.

Classes

DFilter(filter_num, filter_den[, …])

Real-time digital filter.

ZOH([init_time, init_val, sample_time])

Zero-order hold.