(self)
return new_evaluate
Turn the uncertain function into a deterministic 'mean' function.
Turn the uncertain function into a deterministic 'mean' function.
Turn the uncertain function into a deterministic mean function .
def to_mean_function(self):
        """Turn the uncertain function into a deterministic 'mean' function."""
        def _only_first_output(function):
            """Remove all but the first output of a function.

            Parameters
            ----------
            function : callable

            Returns
            -------
            function : callable
                The modified function.

            """
            def new_function(*points):
                return function(*points)[0]
            return new_function

        new_evaluate = _only_first_output(self.build_evaluation)

        return new_evaluate
def to_mean_function ( self ) : def _only_first_output ( function ) : """Remove all but the first output of a function.

            Parameters
            ----------
            function : callable

            Returns
            -------
            function : callable
                The modified function.

            """ def new_function ( * points ) : return function ( * points ) [ 0 ] return new_function new_evaluate = _only_first_output ( self . build_evaluation ) return new_evaluate