outputTransform method
- int steps
Returns the output transform for steps consecutive shifted-out bits.
Result bit zero is the first serial output bit.
Implementation
BinaryAffineTransform outputTransform(int steps) {
_validateSteps(steps);
final rows = <BigInt>[];
var stateTransform = BinaryAffineTransform.identity(width);
final oneStep = BinaryAffineTransform(_serialRecurrence.stateMatrix);
for (var index = 0; index < steps; index++) {
rows.add(stateTransform.matrix.row(0));
stateTransform = oneStep.compose(stateTransform);
}
return BinaryAffineTransform(BinaryMatrix(rows, columnCount: width));
}