HermiteResampler
Inputs: i1
Outputs: o1
The HermiteResampler
operator resamples the input stream using the provided value (dt). The implemented algorithm can be found on http://paulbourke.net/miscellaneous/interpolation/ and it has been labeled as Hermite Interpolation.
The HermiteResampler
operator holds a message buffer on i1
with a size of 4. Once the message buffer on i1
gets filled it resamples the interval and emits a vector of messages through o1
right after the message buffer on i1
gets filled. The amount of messages returned in the resulting vector depend on how many dt intervals fall into the analized buffer.
Parameters
id: The id of the operator
dt: The size to transform the input grid steps, if any, on dt steps
Usage
- TypeScript
- Python
- C++
- YAML
- Json
import { Program, HermiteResampler } from "@rtbot-dev/rtbot";
const id = "id";
const dt = 5;
const program = new Program();
program.addOperator(new HermiteResampler(id, dt));
import rtbot as rb
id = "id";
dt = 5;
program = rb.Program()
program.addOperator(rb.HermiteResampler(id, dt))
#include "rtbot/HermiteResampler.h"
auto id = "id";
auto dt = 5;
auto op = HermiteResampler<std::uint64_t, double>(id, dt)
# minimal RtBot program
operators:
- type: HermiteResampler
id: "id"
dt: 5
{
"operators": [
{ "type": "HermiteResampler", "id": "id", "dt": 5 }
]
}