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

◆ galois_lfsr_state()

MAYAFLUX_API std::vector< double > MayaFlux::Kinesis::Discrete::galois_lfsr_state ( uint32_t  taps,
uint32_t  seed = 1,
double  threshold = 0.5 
)

Builds the array galois_lfsr reads and writes.

Parameters
tapsFeedback mask; 0xB400 gives 16 bits and 0x80200003 gives 32 of maximal length
seedStarting register; zero selects 1
thresholdLevel the input must rise through

Layout: [threshold, latched, taps, register].

Definition at line 146 of file Boolean.cpp.

147{
148 return { threshold, 0.0, static_cast<double>(taps), static_cast<double>(seed == 0 ? 1U : seed) };
149}
float threshold

References threshold.