96069eb892641bab92715e353af443053ef54014,dit/utils/tests/test_units.py,,test_cc,#,55
Before Change
gm = Distribution(["00", "01", "10"], [1/3]*3)
ditParams["units"] = True
cc, marg = channel_capacity_joint(gm, [0], [1], marginal=True)
ditParams["units"] = False
true = ureg.Quantity(0.3219280796196524, ureg.bit)
assert cc == pytest.approx(true)
After Change
gm = Distribution(["00", "01", "10"], [1/3]*3)
ditParams["units"] = True
cc, marg = channel_capacity_joint(gm, [0], [1], marginal=True)
reset_params()
true = ureg.Quantity(0.3219280796196524, ureg.bit)
assert cc == pytest.approx(true)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: dit/dit
Commit Name: 96069eb892641bab92715e353af443053ef54014
Time: 2018-02-26
Author: ryangregoryjames@gmail.com
File Name: dit/utils/tests/test_units.py
Class Name:
Method Name: test_cc
Project Name: dit/dit
Commit Name: 96069eb892641bab92715e353af443053ef54014
Time: 2018-02-26
Author: ryangregoryjames@gmail.com
File Name: dit/utils/tests/test_units.py
Class Name:
Method Name: test_dit
Project Name: dit/dit
Commit Name: 96069eb892641bab92715e353af443053ef54014
Time: 2018-02-26
Author: ryangregoryjames@gmail.com
File Name: dit/utils/tests/test_units.py
Class Name:
Method Name: test_nat
Project Name: dit/dit
Commit Name: 96069eb892641bab92715e353af443053ef54014
Time: 2018-02-26
Author: ryangregoryjames@gmail.com
File Name: dit/utils/tests/test_units.py
Class Name:
Method Name: test_bit