(self, xval: XValue[T])
Compute the output of the function at a point

        :param xval: the x-position to compute
        :returns: f(xval)
Compute the output of the function at a point
Compute the output of the function at a point
def call(self, xval: XValue[T]) -> float:
        """ Compute the output of the function at a point

        :param xval: the x-position to compute
        :returns: f(xval)
        """
        if len(self.breakpoints) == 0 or xval < self.breakpoints.keys()[0]:
            return self._initial_value
        else:
            lower_index = self.breakpoints.bisect(xval) - 1
            return self.breakpoints.values()[lower_index]
def call ( self , xval : XValue [ T ] ) -> float : if len ( self . breakpoints ) == 0 or xval < self . breakpoints . keys ( ) [ 0 ] : return self . _initial_value else : lower_index = self . breakpoints . bisect ( xval ) - 1 return self . breakpoints . values ( ) [ lower_index ]