/// Generates tau (a vector of bits) from an epoch.
Generates tau (a vector of bits) from an epoch.
Generates tau ( a vector of bits ) from an epoch .
pub fn tau_from_epoch(sys: &SysParam, epoch: Epoch) -> Vec<Bit> {
    (0..sys.lambda_t)
        .rev()
        .map(|index| {
            if (epoch.get() >> index) & 1 == 0 {
                Bit::Zero
            } else {
                Bit::One
            }
        })
        .collect()
}
pub fn tau_from_epoch ( sys : & SysParam , epoch : Epoch ) -> Vec < Bit > { ( 0 .. sys . lambda_t ) . rev ( ) . map ( | index | { if ( epoch . get ( ) >> index ) & 1 == 0 { Bit :: Zero } else { Bit :: One } } ) . collect ( ) }
Generates tau (a vector of bits) from an epoch.
Generates tau ( a vector of bits ) from an epoch .
sys
&SysParam
epoch
Epoch