(self, method_name, method_results)
Add results of a method.

        Parameters
        ----------
        method_results: {list, np.ndarray, StateIOContainer}
            experiment results of a method. contains k stateIO object or
            a list contains n tuples with 2 elements, in which, the first
            element is the x_axis (e.g., iteration, accumulative_cost),
            and the second element is the y_axis (e.g., the performance)

        method_name: str
            Name of the given method.
Add results of a method.
Add results of a method .
def add_method(self, method_name, method_results):
        """
        Add results of a method.

        Parameters
        ----------
        method_results: {list, np.ndarray, StateIOContainer}
            experiment results of a method. contains k stateIO object or
            a list contains n tuples with 2 elements, in which, the first
            element is the x_axis (e.g., iteration, accumulative_cost),
            and the second element is the y_axis (e.g., the performance)

        method_name: str
            Name of the given method.
        """
        if isinstance(method_results, (list, np.ndarray)):
            self.__add_list_result(method_name, method_results)
        elif isinstance(method_results, StateIOContainer):
            self.__add_stateio_container(method_name, method_results)
        else:
            raise TypeError('method_results must be one of {list, numpy.ndarray, StateIOContainer}.')
def add_method ( self , method_name , method_results ) : if isinstance ( method_results , ( list , np . ndarray ) ) : self . __add_list_result ( method_name , method_results ) elif isinstance ( method_results , StateIOContainer ) : self . __add_stateio_container ( method_name , method_results ) else : raise TypeError ( 'method_results must be one of {list, numpy.ndarray, StateIOContainer}.' )