_Arx

it.grypho.scala.leonardo.control._Arx
case class _Arx(u: _Expression, y: _Expression, na: _Expression, nb: _Expression, nk: _Expression) extends _Expression

arx(u, y, na, nb, nk) — arx as a node, the row [[a, b]] (F_0060; several outputs since F_0093, through arxMimo).

a is the na×1 column of autoregressive coefficients in the predictor sign, or 0 when na = 0 — a matrix cannot have zero rows, and 0 for an absent group is the qp/kkt convention; b is nb×m, a column per input. Tuple assignment binds both: a, b := arx(u, y, 2, 1, 1). With p ≥ 2 outputs the blocks are stacked (Decision A): a is (na·p)×p = [A₁; A₂; …], or zeros(p, p) when na = 0 (Decision B), and b is (nb·p)×m = [B₁; B₂; …] — the single-output shapes at p = 1. A refusal leaves the call as written, and declineReason carries the reason the REPL prints.

Value parameters

na

the autoregressive order

nb

the coefficients per input

nk

the input delay

u

the inputs

y

the output

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait _Expression
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def children: List[_Expression]

Sub-expressions subject to recursive structural traversal. Binder positions (e.g. the differentiation variable) are excluded.

Sub-expressions subject to recursive structural traversal. Binder positions (e.g. the differentiation variable) are excluded.

Attributes

Definition Classes
def declineReason(env: Environment): Option[ArxFailure]

Why the call stays as written, for one output or several (F_0093) — detailed keeps its single-output contract and so refuses a p×N output that this node answers.

Why the call stays as written, for one output or several (F_0093) — detailed keeps its single-output contract and so refuses a p×N output that this node answers.

Value parameters

env

the evaluation environment

Attributes

Returns

the reason, or None when it evaluates

def detailed(env: Environment): Either[ArxFailure, ArxModel]

The identified model, or why it was declined.

The identified model, or why it was declined.

Value parameters

env

the evaluation environment

Attributes

Returns

the model or the reason

override def eval(env: Environment): Either[_Expression, _Value]

Reduces this expression in the given environment.

Reduces this expression in the given environment.

Value parameters

env

variable bindings and display precision

Attributes

Returns

Right(v) when all free variables resolved to concrete values; Left(e) when reduction is partial or impossible

Definition Classes
override def rebuild(c: List[_Expression]): _Expression

Reconstructs the same node shape with replacement sub-expressions.

Reconstructs the same node shape with replacement sub-expressions.

Value parameters

newChildren

replacements in the same order and count as children

Attributes

Definition Classes
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Inherited fields

lazy val freeVars: Set[String]

Cached set of free variable names; O(1) after the first access.

Cached set of free variable names; O(1) after the first access.

Attributes

Inherited from:
_Expression