Ejemplo n.º 1
0
 def sum(self, fill_value=None):
     '''
     Get summarize value.
     
     :param fill_value: (*float*) Fill value.
     
     :returns: Summarize value.
     '''
     if fill_value == None:
         return ArrayMath.sum(self.array)
     else:
         return ArrayMath.sum(self.array, fill_value)
Ejemplo n.º 2
0
    def sum(self, axis=None):
        '''
        Sum of array elements over a given axis.

        :param axis: (*int*) Axis along which the standard deviation is computed. 
            The default is to compute the standard deviation of the flattened array.
        
        returns: (*array_like*) Sum result
        '''
        if axis is None:
            return ArrayMath.sum(self.array)
        else:
            r = ArrayMath.sum(self.array, axis)
            return MIArray(r)
Ejemplo n.º 3
0
    def sum(self, axis=None):
        '''
        Sum of array elements over a given axis.

        :param axis: (*int*) Axis along which the standard deviation is computed. 
            The default is to compute the standard deviation of the flattened array.
        
        returns: (*array_like*) Sum result
        '''
        if axis is None:
            return ArrayMath.sum(self.array)
        else:
            r = ArrayMath.sum(self.array, axis)
            return MIArray(r)
Ejemplo n.º 4
0
 def sum(self, fill_value=None):
     if fill_value == None:
         return ArrayMath.sum(self.array)
     else:
         return ArrayMath.sum(self.array, fill_value)