Beispiel #1
0
def test_seg_basic_title():
    fig, ax = plt.subplots(1, 1)
    seg(reference, test, units="mmol", title="Test", ax=ax)
    return fig
Beispiel #2
0
def test_seg_no_percentages():
    fig, ax = plt.subplots(1, 1)
    seg(reference, test, units="mmol", percentage=False, ax=ax)
    return fig
Beispiel #3
0
from methcomp import seg, segscores
import matplotlib.pyplot as plt
from random import uniform

ref = [uniform(2, 18) for _ in range(300)]
test = [uniform(2, 18) for _ in range(300)]

zones = segscores(ref, test, units='mmol')
print('SEG scores: {}'.format(zones))

seg(ref, test, units='mmol', percentage=False)
plt.show()
Beispiel #4
0
def test_clarke_no_mgdl():
    fig, ax = plt.subplots(1, 1)
    _ref = [x * 18 for x in reference]
    _test = [x * 18 for x in test]
    seg(_ref, _test, units='mgdl', percentage=False, ax=ax)
    return fig
Beispiel #5
0
def test_seg_basic_title():
    fig, ax = plt.subplots(1, 1)
    seg(reference, test, units='mmol', title='Test', ax=ax)
    return fig
Beispiel #6
0
def test_clarke_basic():
    fig, ax = plt.subplots(1, 1)
    seg(reference, test, units='mmol', ax=ax)
    return fig
Beispiel #7
0
# -*- coding: utf-8 -*-
from random import uniform

import matplotlib.pyplot as plt

from methcomp import seg, segscores

ref = [uniform(2, 18) for _ in range(300)]
test = [uniform(2, 18) for _ in range(300)]

zones = segscores(ref, test, units="mmol")
print("SEG scores: {}".format(zones))

seg(ref, test, units="mmol", percentage=False)
plt.show()