#19863: Static error rate channel does not always add as many errors as expected
-----------------------------+----------------------------
   Reporter:  dlucas         |            Owner:
       Type:  enhancement    |           Status:  new
   Priority:  major          |        Milestone:  sage-7.0
  Component:  coding theory  |         Keywords:
  Merged in:                 |          Authors:
  Reviewers:                 |  Report Upstream:  N/A
Work issues:                 |           Branch:
     Commit:                 |     Dependencies:
   Stopgaps:                 |
-----------------------------+----------------------------
 I noticed the following:

 {{{
 V = VectorSpace(GF(2), 2)
 Chan = channels.StaticErrorRateChannel(V, 1)
 for i in range(100):
     c = V.random_element()
     r = Chan(c)
     assert c != r

 AssertionError
 }}}

 This is due to a line in the `transmit_unsafe` methods which replaces
 values of the transmitted vector by random values picked from the base
 ring of the transmitted vector.
 It works with high probability for big rings, but obviously not for my
 example.

 In any case, it does not respect the promised behaviour and thus should be
 fixed.

--
Ticket URL: <http://trac.sagemath.org/ticket/19863>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to