epidemioptim/environments/gym_envs/epidemic_vaccination_16.py
def _compute_delta_coverage(self):
        """
        Compute the vaccination coverage for each time period regarding Excel file
        """
        maxcoverage = [x*100 for x in self.model._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 
        _deltaCoverage[-1] = _deltaCoverage[-2]
        return _deltaCoverage

        Compute the vaccination coverage for each time period regarding Excel file
        
Compute the vaccination coverage for each time period regarding Excel file
Compute the vaccination coverage for each time period regarding Excel file
def _compute_delta_coverage(self):
        maxcoverage = [x*100 for x in self.model._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 
        _deltaCoverage[-1] = _deltaCoverage[-2]
        return _deltaCoverage
def _compute_delta_coverage ( self ) : maxcoverage = [ x * 100 for x in self . model . _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 _deltaCoverage [ - 1 ] = _deltaCoverage [ - 2 ] return _deltaCoverage
Compute the vaccination coverage for each time period regarding Excel file
Compute the vaccination coverage for each time period regarding Excel file
"""
        Compute the vaccination coverage for each time period regarding Excel file
        """
self