MA: a facility for dealing with missing observations MA is generally
used as a numpy.array look-alike. by Paul F. Dubois.
Copyright 1999, 2000, 2001 Regents of the University of California.
Released for unlimited redistribution. Adapted for numpy_core 2005 by
Travis Oliphant and (mainly) Paul Dubois.
|
|
|
|
|
| _cumprod(self,
axis=None,
dtype=None,
out=None) |
source code
|
|
|
|
| _cumsum(self,
axis=None,
dtype=None,
out=None) |
source code
|
|
|
|
|
|
|
|
|
|
| _std(self,
axis=None,
dtype=None,
out=None) |
source code
|
|
|
|
|
|
|
| _var(self,
axis=None,
dtype=None,
out=None) |
source code
|
|
|
|
allclose(a,
b,
fill_value=1,
rtol=1e-05,
atol=1e-08)
Returns true if all components of a and b are equal subject to
given tolerances. |
source code
|
|
|
|
allequal(a,
b,
fill_value=1)
True if all entries of a and b are equal, using fill_value as a
truth value where either or both are masked. |
source code
|
|
|
|
alltrue(target,
axis=0,
dtype=None)
Reduce target along the given axis with this function. |
source code
|
|
|
|
arange(start,
stop=None,
step=1,
dtype=None)
Just like range() except it returns a array whose type can be
specified by the keyword argument dtype. |
source code
|
|
|
|
argmax(x,
axis=-1,
out=None,
fill_value=None)
Treating masked values as if they have the value fill_value,
return sort indices for maximum along given axis. |
source code
|
|
|
|
argmin(x,
axis=-1,
out=None,
fill_value=None)
Treating masked values as if they have the value fill_value,
return indices for minimum values along given axis. |
source code
|
|
|
|
argsort(x,
axis=-1,
out=None,
fill_value=None)
Treating masked values as if they have the value fill_value,
return sort indices for sorting along given axis. |
source code
|
|
|
|
arrayrange(start,
stop=None,
step=1,
dtype=None)
Just like range() except it returns a array whose type can be
specified by the keyword argument dtype. |
source code
|
|
|
|
asarray(data,
dtype=None)
asarray(data, dtype) = array(data, dtype, copy=0) |
source code
|
|
|
|
|
|
|
choose(indices,
t,
out=None,
mode='raise')
Returns array shaped like indices with elements chosen from t |
source code
|
|
|
|
common_fill_value(a,
b)
The common fill_value of a and b, if there is one, or None |
source code
|
|
|
|
compress(condition,
x,
dimension=-1,
out=None)
Select those parts of x for which condition is true. |
source code
|
|
|
|
concatenate(arrays,
axis=0)
Concatenate the arrays along the given axis |
source code
|
|
|
|
count(a,
axis=None)
Count of the non-masked elements in a, or along a certain
axis. |
source code
|
|
|
|
default_fill_value(obj)
Function to calculate default fill value for an object. |
source code
|
|
|
|
diagonal(a,
k=0,
axis1=0,
axis2=1)
diagonal(a,k=0,axis1=0, axis2=1) = the k'th diagonal of a |
source code
|
|
|
|
dot(a,
b)
dot(a,b) returns matrix-multiplication between a and b. |
source code
|
|
|
|
filled(a,
value=None)
a as a contiguous numeric array with any masked areas replaced by
value if value is None or the special element "masked",
get_fill_value(a) is used instead. |
source code
|
|
|
|
fromfunction(f,
s)
apply f to s to create array as in umath. |
source code
|
|
|
|
|
|
|
get_fill_value(a)
The fill value of a, if it has one; otherwise, the default fill
value for that type. |
source code
|
|
|
|
|
|
|
getmaskarray(a)
Mask of values in a; an array of zeros if mask is nomask or not a
masked array, and is a byte-sized integer. |
source code
|
|
|
|
identity(n)
identity(n) returns the identity matrix of shape n x n. |
source code
|
|
|
|
indices(dimensions,
dtype=None)
indices(dimensions,dtype=None) returns an array representing a
grid of indices with row-only, and column-only variation. |
source code
|
|
|
|
inner(a,
b)
inner(a,b) returns the dot product of two arrays, which has shape
a.shape[:-1] + b.shape[:-1] with elements computed by summing the
product of the elements from the last dimensions of a and b. |
source code
|
|
|
|
innerproduct(a,
b)
inner(a,b) returns the dot product of two arrays, which has shape
a.shape[:-1] + b.shape[:-1] with elements computed by summing the
product of the elements from the last dimensions of a and b. |
source code
|
|
|
|
isMA(x)
Is x a masked array, that is, an instance of MaskedArray? |
source code
|
|
|
|
isMaskedArray(x)
Is x a masked array, that is, an instance of MaskedArray? |
source code
|
|
|
|
is_mask(m)
Is m a legal mask? Does not check contents, only type. |
source code
|
|
|
|
isarray(x)
Is x a masked array, that is, an instance of MaskedArray? |
source code
|
|
|
|
|
|
|
make_mask(m,
copy=0,
flag=0)
return m as a mask, creating a copy if necessary or requested. |
source code
|
|
|
|
make_mask_none(s)
Return a mask of all zeros of shape s. |
source code
|
|
|
|
mask_or(m1,
m2)
Logical or of the mask candidates m1 and m2, treating nomask as
false. |
source code
|
|
|
|
masked_array(a,
mask=False,
fill_value=None)
masked_array(a, mask=nomask) = array(a, mask=mask, copy=0,
fill_value=fill_value) |
source code
|
|
|
|
masked_equal(x,
value,
copy=1)
masked_equal(x, value) = x masked where x == value For floating
point consider masked_values(x, value) instead. |
source code
|
|
|
|
masked_greater(x,
value,
copy=1)
masked_greater(x, value) = x masked where x > value |
source code
|
|
|
|
masked_greater_equal(x,
value,
copy=1)
masked_greater_equal(x, value) = x masked where x >= value |
source code
|
|
|
|
masked_inside(x,
v1,
v2,
copy=1)
x with mask of all values of x that are inside [v1,v2] v1 and v2
can be given in either order. |
source code
|
|
|
|
masked_less(x,
value,
copy=1)
masked_less(x, value) = x masked where x < value |
source code
|
|
|
|
masked_less_equal(x,
value,
copy=1)
masked_less_equal(x, value) = x masked where x <= value |
source code
|
|
|
|
masked_not_equal(x,
value,
copy=1)
masked_not_equal(x, value) = x masked where x != value |
source code
|
|
|
|
masked_object(data,
value,
copy=1)
Create array masked where exactly data equal to value |
source code
|
|
|
|
masked_outside(x,
v1,
v2,
copy=1)
x with mask of all values of x that are outside [v1,v2] v1 and v2
can be given in either order. |
source code
|
|
|
|
|
|
|
|
|
|
maximum_fill_value(obj)
Function to calculate default fill value suitable for taking
maxima. |
source code
|
|
|
|
minimum_fill_value(obj)
Function to calculate default fill value suitable for taking
minima. |
source code
|
|
|
|
nonzero(a)
returns the indices of the elements of a which are not zero and
not masked |
source code
|
|
|
|
ones(shape,
dtype=<type 'float'>)
ones(n, dtype=float) = an array of all ones of the given length or
shape. |
source code
|
|
|
|
outer(a,
b)
outer(a,b) = {a[i]*b[j]}, has shape (len(a),len(b)) |
source code
|
|
|
|
outerproduct(a,
b)
outer(a,b) = {a[i]*b[j]}, has shape (len(a),len(b)) |
source code
|
|
|
|
|
|
|
|
|
|
put(a,
indices,
values,
mode='raise')
sets storage-indexed locations to corresponding values. |
source code
|
|
|
|
putmask(a,
mask,
values)
putmask(a, mask, values) sets a where mask is true. |
source code
|
|
|
|
|
|
|
ravel(a)
a as one-dimensional, may share data and mask |
source code
|
|
|
|
repeat(a,
repeats,
axis=None)
repeat elements of a repeats times along axis repeats is a
sequence of length a.shape[axis] telling how many times to repeat
each element. |
source code
|
|
|
|
reshape(a,
*newshape)
Copy of a with a new shape. |
source code
|
|
|
|
resize(a,
new_shape)
resize(a, new_shape) returns a new array with the specified
shape. |
source code
|
|
|
|
|
|
|
set_fill_value(a,
fill_value)
Set fill value of a if it is a masked array. |
source code
|
|
|
|
|
|
|
|
|
|
sometrue(target,
axis=0,
dtype=None)
Reduce target along the given axis with this function. |
source code
|
|
|
|
sort(x,
axis=-1,
fill_value=None)
If x does not have a mask, return a masked array formed from the
result of numeric.sort(x, axis). |
source code
|
|
|
|
|
|
|
|
|
|
take(a,
indices,
axis=None,
out=None,
mode='raise')
returns selection of items from a. |
source code
|
|
|
|
trace(a,
offset=0,
axis1=0,
axis2=1,
dtype=None,
out=None)
trace(a,offset=0, axis1=0, axis2=1) returns the sum along
diagonals (defined by the last two dimenions) of the array. |
source code
|
|
|
|
transpose(a,
axes=None)
reorder dimensions per tuple axes |
source code
|
|
|
|
where(condition,
x,
y)
where(condition, x, y) is x where condition is nonzero, y
otherwise. |
source code
|
|
|
|
zeros(shape,
dtype=<type 'float'>)
zeros(n, dtype=float) = an array of all zeros of the given length
or shape. |
source code
|
|
|
|
absolute = <numpy.core.ma.masked_unary_operation instance at 0...
|
|
|
add = <numpy.core.ma.masked_binary_operation instance at 0x859...
|
|
|
arccos = <numpy.core.ma.masked_unary_operation instance at 0x8...
|
|
|
arccosh = <numpy.core.ma.masked_unary_operation instance at 0x...
|
|
|
arcsin = <numpy.core.ma.masked_unary_operation instance at 0x8...
|
|
|
arcsinh = <numpy.core.ma.masked_unary_operation instance at 0x...
|
|
|
arctan = <numpy.core.ma.masked_unary_operation instance at 0x8...
|
|
|
arctan2 = <numpy.core.ma.masked_binary_operation instance at 0...
|
|
|
arctanh = <numpy.core.ma.masked_unary_operation instance at 0x...
|
|
|
around = <numpy.core.ma.masked_unary_operation instance at 0x8...
|
|
|
bitwise_and = <numpy.core.ma.masked_binary_operation instance ...
|
|
|
bitwise_or = <numpy.core.ma.masked_binary_operation instance a...
|
|
|
bitwise_xor = <numpy.core.ma.masked_binary_operation instance ...
|
|
|
ceil = <numpy.core.ma.masked_unary_operation instance at 0x859...
|
|
|
conjugate = <numpy.core.ma.masked_unary_operation instance at ...
|
|
|
cos = <numpy.core.ma.masked_unary_operation instance at 0x859e...
|
|
|
cosh = <numpy.core.ma.masked_unary_operation instance at 0x859...
|
|
|
default_character_fill_value = '-'
|
|
|
default_complex_fill_value = (1e+20+0j)
|
|
|
default_integer_fill_value = 999999
|
|
|
default_object_fill_value = '?'
|
|
|
default_real_fill_value = 1e+20
|
|
|
divide = <numpy.core.ma.domained_binary_operation instance at ...
|
|
|
divide_tolerance = 1e-35
|
|
|
equal = <numpy.core.ma.masked_binary_operation instance at 0x8...
|
|
|
exp = <numpy.core.ma.masked_unary_operation instance at 0x859e...
|
|
|
fabs = <numpy.core.ma.masked_unary_operation instance at 0x859...
|
|
|
floor = <numpy.core.ma.masked_unary_operation instance at 0x85...
|
|
|
floor_divide = <numpy.core.ma.domained_binary_operation instan...
|
|
|
fmod = <numpy.core.ma.domained_binary_operation instance at 0x...
|
|
|
greater = <numpy.core.ma.masked_binary_operation instance at 0...
|
|
|
greater_equal = <numpy.core.ma.masked_binary_operation instanc...
|
|
|
hypot = <numpy.core.ma.masked_binary_operation instance at 0x8...
|
|
|
inf = inf
|
|
|
less = <numpy.core.ma.masked_binary_operation instance at 0x85...
|
|
|
less_equal = <numpy.core.ma.masked_binary_operation instance a...
|
|
|
log = <numpy.core.ma.masked_unary_operation instance at 0x859e...
|
|
|
log10 = <numpy.core.ma.masked_unary_operation instance at 0x85...
|
|
|
logical_and = <numpy.core.ma.masked_binary_operation instance ...
|
|
|
logical_not = <numpy.core.ma.masked_unary_operation instance a...
|
|
|
logical_or = <numpy.core.ma.masked_binary_operation instance a...
|
|
|
logical_xor = <numpy.core.ma.masked_binary_operation instance ...
|
|
|
masked = array(dat...
|
|
|
masked_print_option = --
|
|
|
maximum = <numpy.core.ma._maximum_operation instance at 0x85a4...
|
|
|
minimum = <numpy.core.ma._minimum_operation instance at 0x85a4...
|
|
|
multiply = <numpy.core.ma.masked_binary_operation instance at ...
|
|
|
negative = <numpy.core.ma.masked_unary_operation instance at 0...
|
|
|
newaxis = None
|
|
|
nomask = False
|
|
|
not_equal = <numpy.core.ma.masked_binary_operation instance at...
|
|
|
remainder = <numpy.core.ma.domained_binary_operation instance ...
|
|
|
sin = <numpy.core.ma.masked_unary_operation instance at 0x859e...
|
|
|
sinh = <numpy.core.ma.masked_unary_operation instance at 0x859...
|
|
|
sqrt = <numpy.core.ma.masked_unary_operation instance at 0x859...
|
|
|
subtract = <numpy.core.ma.masked_binary_operation instance at ...
|
|
|
tan = <numpy.core.ma.masked_unary_operation instance at 0x859e...
|
|
|
tanh = <numpy.core.ma.masked_unary_operation instance at 0x859...
|
|
|
true_divide = <numpy.core.ma.domained_binary_operation instanc...
|
|
|
typecodes = {'All': '?bhilqpBHILQPfdgFDGSUVO', 'AllFloat': 'fd...
|
|
|
ufunc_domain = {<function round_ at 0x857f3e4>: None, <ufunc '...
|
|
|
ufunc_fills = {<function round_ at 0x857f3e4>: (0), <ufunc 'lo...
|