(self)
return max
Return the maximum as an inclusive maximum (exclusive maxima are adjusted accordingly)
Return the maximum as an inclusive maximum (exclusive maxima are adjusted accordingly)
Return the maximum as an inclusive maximum ( exclusive maxima are adjusted accordingly )
def getInclusiveMax(self) -> Optional[float]:
        """Return the maximum as an inclusive maximum (exclusive maxima are adjusted accordingly)"""
        max = self.maximum
        if max is None:
            return None
        if self.exclusiveMaximum:
            if self.discrete:
                max = max - 1
            else:
                max = numpy.nextafter(max, float("-inf"))
        return max
def getInclusiveMax ( self ) -> Optional [ float ] : max = self . maximum if max is None : return None if self . exclusiveMaximum : if self . discrete : max = max - 1 else : max = numpy . nextafter ( max , float ( "-inf" ) ) return max