epidemioptim/environments/models/heffernan_ode_model_16.py
def _compute_delta_coverage(self):
        """
        Compute the goal coverage for each month regarding the Excel sheet
        """
        maxcoverage = [x*100 for x in self._vaccination_coverage]
        _deltaCoverage = list(range(len(maxcoverage)))
        _deltaCoverage[0] = maxcoverage[0]
        for i in range(1, len(maxcoverage)):
            if maxcoverage[i] != maxcoverage[i-1]:
                _deltaCoverage[i] = maxcoverage[i] - maxcoverage[i-1]
            else:
                _deltaCoverage[i] = maxcoverage[i-1]
        for i in range(len(_deltaCoverage)):
            if _deltaCoverage[i] == 0:
                _deltaCoverage[i] = 10e-6 
        for i in range(1,14):
            _deltaCoverage[-i] = _deltaCoverage[-14]
        return _deltaCoverage

        Compute the goal coverage for each month regarding the Excel sheet
        
Compute the goal coverage for each month regarding the Excel sheet
Compute the goal coverage for each month regarding the Excel sheet
def _compute_delta_coverage(self):
        maxcoverage = [x*100 for x in self._vaccination_coverage]
        _deltaCoverage = list(range(len(maxcoverage)))
        _deltaCoverage[0] = maxcoverage[0]
        for i in range(1, len(maxcoverage)):
            if maxcoverage[i] != maxcoverage[i-1]:
                _deltaCoverage[i] = maxcoverage[i] - maxcoverage[i-1]
            else:
                _deltaCoverage[i] = maxcoverage[i-1]
        for i in range(len(_deltaCoverage)):
            if _deltaCoverage[i] == 0:
                _deltaCoverage[i] = 10e-6 
        for i in range(1,14):
            _deltaCoverage[-i] = _deltaCoverage[-14]
        return _deltaCoverage
def _compute_delta_coverage ( self ) : maxcoverage = [ x * 100 for x in self . _vaccination_coverage ] _deltaCoverage = list ( range ( len ( maxcoverage ) ) ) _deltaCoverage [ 0 ] = maxcoverage [ 0 ] for i in range ( 1 , len ( maxcoverage ) ) : if maxcoverage [ i ] != maxcoverage [ i - 1 ] : _deltaCoverage [ i ] = maxcoverage [ i ] - maxcoverage [ i - 1 ] else : _deltaCoverage [ i ] = maxcoverage [ i - 1 ] for i in range ( len ( _deltaCoverage ) ) : if _deltaCoverage [ i ] == 0 : _deltaCoverage [ i ] = 10e-6 for i in range ( 1 , 14 ) : _deltaCoverage [ - i ] = _deltaCoverage [ - 14 ] return _deltaCoverage
Compute the goal coverage for each month regarding the Excel sheet
Compute the goal coverage for each month regarding the Excel sheet
"""
        Compute the goal coverage for each month regarding the Excel sheet
        """
self