def _store_unsorted_results(self, smooth, residual):
if self._original_index_of_xvalue:<EOL><INDENT>self.smooth_result = numpy.zeros(len(self.y))<EOL>self.cross_validated_residual = numpy.zeros(len(residual))<EOL>original_x = numpy.zeros(len(self.y))<EOL>for i, (xval, smooth_val, residual_val) in enumerate(zip(self.x, smooth, residual)):<EOL><INDENT>original_index = self._original_index_of_xvalue[i]<EOL>original_x[original_index] = xval<EOL>self.smooth_result[original_index] = smooth_val<EOL>self.cross_validated_residual[original_index] = residual_val<EOL>self.x = original_x<EOL><DEDENT><DEDENT>else:<EOL><INDENT>self.smooth_result = smooth<EOL>self.cross_validated_residual = residual<EOL><DEDENT>
Convert sorted smooth/residual back to as-input order.