MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ clocked_register_state()

MAYAFLUX_API std::vector< double > MayaFlux::Kinesis::Discrete::clocked_register_state ( size_t  length,
size_t  tap,
double  threshold = 0.5 
)

Builds the array clocked_register reads and writes.

Parameters
lengthNumber of stages
tapWhich stage is read out, 0 the newest
thresholdLevel that makes a slot a one

Layout: [threshold, latched, length, tap, stages...].

Definition at line 340 of file Boolean.cpp.

341{
342 std::vector<double> state(4 + length, 0.0);
343 state[0] = threshold;
344 state[2] = static_cast<double>(length);
345 state[3] = static_cast<double>(tap);
346 return state;
347}
uint64_t length
Definition Composite.cpp:11
float threshold

References length, and threshold.