Skip to content

Example to use python encoder/decoder #2

@FranzForstmayr

Description

@FranzForstmayr

Hi,

I expected to use the encoder/decoder as followed

ldpc = LDPC(...)
x = np.random.randint(0,2, 128) # generate some random bits
enc = ldpc.encode(x)
x_r = ldpc.decode(enc)[0]

The decode method delivers float values, however it's not obvious how to get the decoded bits out of the stream.

Could you please clarify if this is possible?

Thanks!
Franz

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions