AutoRegressive
Inputs: i1
Outputs: o1
Implements a classical auto-regressive model.
The AutoRegressive
operator does not hold a message buffer on i1
, so it emits a modified version of the message through o1
right after it receives a message on i1
.
Parameters
id: The id of the operator
coeff: The list of auto-regression coefficients.
Usage
- TypeScript
- Python
- C++
- YAML
- Json
import { Program, AutoRegressive } from "@rtbot-dev/rtbot";
const id = "id";
const coeff = [1.1,0.9];
const program = new Program();
program.addOperator(new AutoRegressive(id, coeff));
import rtbot as rb
id = "id";
coeff = [1.1,0.9];
program = rb.Program()
program.addOperator(rb.AutoRegressive(id, coeff))
#include "rtbot/AutoRegressive.h"
auto id = "id";
auto coeff = {1.1,0.9};
auto op = AutoRegressive<std::uint64_t, double>(id, coeff)
# minimal RtBot program
operators:
- type: AutoRegressive
id: "id"
coeff: [1.1,0.9]
{
"operators": [
{ "type": "AutoRegressive", "id": "id", "coeff": [1.1,0.9] }
]
}