Namespace MOSAIC.Models.FlowControl
Classes
Buffer
A MOSAIC block that buffers incoming MathNet.Numerics.LinearAlgebra.Vector<T> or MathNet.Numerics.LinearAlgebra.Matrix<T>
messages into capture segments and stores them as (Target, Data) pairs.
ChannelSelector
Selects or filters channels from an input vector or matrix. Inactive channels can either be set to zero or removed from the output.
ClockBlock
Source block that generates a periodic tick at a configurable rate using a dedicated high-priority background thread.
ControlAlgorithm
Receives prediction vectors and maps them to actuation values using a pluggable IControlAlgorithmStrategy. Supports runtime algorithm switching.
ManualControl
Manual slider-driven source of DegreesOfActuation values. Produces the same
output format as ControlAlgorithm (Dictionary<DegreesOfActuation, double>,
values in the 0–100 range), so it can be placed directly in front of
UdpStreamlinedSender to manually drive the Unity hand.
Matrix2Vector
Streams a matrix frame row-by-row, emitting one Vector[nChannels] per clock tick.
MeanAverageValue
Computes the Mean Absolute Value (MAV) feature for each channel in a windowed input signal.
Projector
Projects (selects) specific channels from an input vector or matrix by index, producing a reduced-dimension output.
Selector
Extracts the data payload from a labelled tuple, discarding the label string.
SlopeSignChanges
Computes the Slope Sign Changes (SSC) feature for each channel in a windowed input signal.
StimTrigger
Converts Stimulus output tuples into start/stop commands for a downstream Buffer block.
StreamTrigger
Streams a continuous label vector from an upstream source (dataglove, BodyRig, SinGenerator, etc.) into the TriggerBuffer as per-frame regression targets. Where the classic Trigger publishes one Vector per click and holds it constant for the whole capture, StreamTrigger publishes whichever Vector arrived most recently from upstream — so the buffer sees a time-varying label stream paired with data, which is what regression on continuous activations actually needs.
Switch
A two-input switch that forwards data from the currently active input to downstream blocks.
Trigger
Manual trigger block for on-demand data capture in the pipeline.
TriggerBuffer
Captures incoming data windows into labelled segments, controlled by a trigger input. Stores both classification and regression labels uniformly as a per-frame MathNet.Numerics.LinearAlgebra.Matrix<T> of target values.
WaveformLength
Computes the Waveform Length (WL) feature for each channel in a windowed input signal.
ZeroCrossings
Computes the Zero Crossings (ZC) feature for each channel in a windowed input signal.