PaREnDataSources (version 0.1)
index
/home1/alod/CODED/SVN/PaREn/SeparatedFeatures/DataSources/PaREnDataSources/PaREnDataSources.py

#=======================================================================================================
#PaREn Data Sources
#
#In this module you find functions for the generation of
#synthetic distributions and loaders for natural data.
#This is a REDUCED VERSION without Translators.
#
#       Main Features:
#|      - Mixture                                       FUNCTION        Specify a tuple with parameters for synthetic scene generation. This is probably the function you are looking for.
#|      - QuicklyGenerateProblem        FUNCTION        If you're not interested in the nitty gritty details of a mixture, then try this simple generator.
#|  - ErrorProblem2SphericGaussians
#|                              FUNCTION    Creates a dataset with two classes where each is a spheric gaussian density with predefined Bayes error
#|  - ErrirProblem2Gaussians    FUNCTION    Creates a dataset with two classes where each has user defined gaussian density with predefined Bayes error
#|  - QuicklyGenerate2Gaussians FUNCTION    Creates a dataset with two classes where each is a user defined gaussian density with predefined distance
#|  - CreateRawEncoderProblem   FUNCTION        Creates a dataset with an encoder problem
#|  - QuicklyGenerateEncoderProblem
#|                              FUNCTION    Create various encoder problems with many defaults
#|  - 
#|
#|      Additional Functionality:
#I      - GaussianDistribution          FUNCTION        Mutlivariate gaussian with arbitrary direction, position and size
#M      - ComplexDistribution           FUNCTION        Well, some strange bodys come out of this - control it with the weirdness factor
#P      - IndependentDistribution       FUNCTION        Square and independent distributions - they remind of boxes and rectangles. Freely positionable in multivariate feature space
#O
#R      Helper Functions
#T      - WhiteGaussian                         FUNCTION        Helper. Multivariate gaussian distribution with cov=1 and center=0
#A      - ImmunizeKey                           FUNCTION        Helper. Makes key objects less sensitive to different data types
#E      - ltqnorm                                       FUNCTION        Helper. Lower tail quantile for standard normal distribution function.
#|      - erfcinv                                       FUNCTION        Helper. Approximation of erfc^(-1).
#|      - HelperBellCurve                       FUNCTION        Helper. Calculates class density for given normal distributions
#|      - HelperIndependent                     FUNCTION        Helper. Calculates class density for given even distributions   
#v      - HelperApproxComplex           FUNCTION        Helper. Approximates class density for given complex distributions
#=======================================================================================================

 
Modules
       
numpy.oldnumeric.linear_algebra
PaREnUtility
numpy.oldnumeric.random_array
StringIO
numpy.add_newdocs
matplotlib.backends
numpy.core.defchararray
scipy.cluster
matplotlib.cm
copy_reg
numpy.ctypeslib
matplotlib.dates
xml.dom.domreg
numpy.lib.scimath
scipy.fftpack
glob
matplotlib.image
scipy.integrate
scipy.interpolate
scipy.io
scipy.lib
scipy.linalg
scipy.linsolve
numpy.core.ma
math
matplotlib
scipy.maxentropy
scipy.misc
matplotlib.mlab
numpy.core.multiarray
scipy.ndimage
matplotlib.numerix
numpy.oldnumeric
scipy.optimize
os
pickle
numpy.random
numpy.core.records
scipy.signal
scipy.sparse
scipy.special
scipy.stats
string
sys
matplotlib.ticker
types
warnings
_xmlplus

 
Functions
       
AddHorizontal(*Matrices)
#=======================================================================================================
#METHOD AddHorizontal( *Matrices )
#RETURNS 2D Array
#This method is a concatenate() alias that concatenates matrices vertically:
#Example:
#    x = rand( 5, 3 );
#    y = rand( 5, 17 );
#    z = AddHorizontal( x, y ); -> z is 5x20
#Matrices       : 2D Array or none
#=======================================================================================================
AddVertical(*Matrices)
#=======================================================================================================
#METHOD AddVertical( *Matrices )
#RETURNS 2D Array
#This method is a concatenate() alias that concatenates matrices vertically:
#Example:
#    x = rand( 5, 3 );
#    y = rand( 12, 3 );
#    z = AddVertical( x, y ); -> z is 17x3
#Matrices       : 2D Array or None
#=======================================================================================================
ClassInventory(MyClasses)
#=======================================================================================================
#METHOD ClassInventory( LabelList )
#RETURNS LIST of ANYTHING
#This function finds unique class identifiers in a label list
#LabelList      : LIST. List of hashable items serving a labels
#=======================================================================================================
ComplexDistribution(Count, Dimensions, StartVec, Weirdness)
#=======================================================================================================
#FUNCTION ComplexDistribution()
#RETURNS Translator Object
#Count:                 No. of samples to create
#Dimensions:    No. of dimensions of the problem
#StartVec:              Center/Start vector of complex distribution
#Weirdness:             0: Spot, 1: 'gaussian', 10:really weird
#=======================================================================================================
CreateRawEncoderProblem(Dims, Samples=100, Mode='input', Noise=0.0, NoiseUnits=0)
Create input and target vectors for a MNM problem with gaussian noise
according to the Dims size.
where = {'input', 'output', 'inputoutput'}
Noise : strength of the noise (float) >= 0.0
NoiseUnits : add NoiseUnits new noisy inputs in database (INT>=0)
Dimensions(Matrix)
#=======================================================================================================
#METHOD Dimensions( Matrix )
#RETURNS INT
#This method the number of features available in Matrix
#Matrix         : 2D Array
#=======================================================================================================
ErrorProblem2Gaussians(Error, Cov1, Cov2, Dimensions=2, Samples=100, Tolerance=0.001)
#=======================================================================================================
#FUNCTION ErrorProblem2Gaussians( Vector, Classes, GenerateForClass )
#RETURNS 2D Array, List, 2D Array, List, FLOAT
#Quickly generates a gaussian problem from few parameters:
#Error:                         FLOAT. how much error should be possible to make
#Cov1:                          2D Array. Covariance matrix for density 1
#Cov2:                          2D Array. Covariance matrix for density 2
#Dimensions:            INT. How many features does the data have?
#Samples:                       INT. What is the total amount of samples you'd like to get?
#Tolearance:            FLOAT. Small number that defines how long the refinement will take place
#=======================================================================================================
ErrorProblem2SphericGaussians(Error, Dimensions=2, Samples=100, Tolerance=0.0001)
#=======================================================================================================
#FUNCTION ErrorProblem2SphericGaussians( Vector, Classes, GenerateForClass )
#RETURNS 2D Array, List, 2D Array, List, FLOAT
#Quickly generates a gaussian problem from few parameters:
#Error:                         Float, how much error should be possible to make
#Dimensions:            How many features does the data have?
#Samples:                       What is the total amount of samples you'd like to get?
#Tolearance:            FLOAT. Small number that defines how long the refinement will take place
#=======================================================================================================
FastBellCurve(Vector, Center, InverseEpsilon, SqrtDeterminant)
#=======================================================================================================
#HELPER FUNCTION FastBellCurve( Vector, Center, Epsilon)
#RETURNS 2D NumPy Array (ndarray)
#Calculates probability (scalar) at this vector, when bell curve is placed at center and is given the inverted cov. matrix.
#Vector:                        Multivariate points (horizontal vectors arranged vertically in 2D ndarray)
#Center:                        Center/Start vector of normal distribution (horiz. vector) 
#Epsilon:                       Covariance matrix
#=======================================================================================================
GaussianDistribution(Count, Dimensions, mu, epsilon)
#=======================================================================================================
#FUNCTION GaussianDistribution()
#RETURNS Translator Object
#Count:                 No. of samples to create
#Dimensions:    No. of dimensions of the problem
#mu:                    Center of normal distribution
#epsilon:               Target covariance of normal distribution
#=======================================================================================================
HelperBellCurve(Vector, Center, Epsilon)
#=======================================================================================================
#HELPER FUNCTION HelperBellCurve( Vector, Center, Epsilon)
#RETURNS 2D NumPy Array (ndarray)
#Calculates probability (scalar) at this vector, when bell curve is placed at center and is given the inverted cov. matrix.
#Vector:                        Multivariate points (horizontal vectors arranged vertically in 2D ndarray)
#Center:                        Center/Start vector of normal distribution (horiz. vector 1D ndarray) 
#Epsilon:                       Covariance matrix (2D ndarray, height and width equal to width of >>Vector<<
#=======================================================================================================
HelperComplex(Vectors, Classes, GenerateForClass)
#=======================================================================================================
#HELPER FUNCTION HelperComplex( Vector, Classes, GenerateForClass )
#RETURNS 2D NumPy Array (ndarray)
#Estimates a probability (scalar) for every supplied vector in >>Vector<<
#through density estimation on all >>Vector<<s
#Vector:                        Multivariate points (horizontal vectors arranged vertically)
#Classes:               Classification of every Vector there's in.
#GenerateForClass:      Hashable class identifier
#=======================================================================================================
HelperIndependent(Vectors, CenterOrStart, Transform)
#=======================================================================================================
#HELPER FUNCTION HelperIndependent( Vector, Center, Transform )
#RETURNS 2D NumPy Array (ndarray)
#Calculates probability (scalar) at this vector, when box is placed at center and is transformed
#Vector:                        Multivariate points (horizontal vectors arranged vertically)
#Center:                        Center/Start vector of normal distribution (vertical vector)
#Epsilon:                       Covariance matrix
#=======================================================================================================
ImmunizeKey(Key)
#=======================================================================================================
#FUNCTION ImmunizeKey( Key )
#RETURNS STRING/DOUBLE and no integers but it also returns other hashable types
#THROWS AttributeError and HashError
#Returns a key that is not sensitive to data type
#=======================================================================================================
IndependentDistribution(Count, Dimensions, StartVec, TransformationMatrix)
#=======================================================================================================
#FUNCTION IndependentDistribution()
#RETURNS Translator Object
#Count:                 No. of samples to create
#Dimensions:    No. of dimensions of the problem
#StartVec:              Center/Start vector of complex distribution
#Trans.Matrix:  Transformation Matrix (Optional)
#=======================================================================================================
Mixture(Descriptions, Dims, Normalize=1)
#=======================================================================================================
#FUNCTION Mixture( Description, Dims )
#RETURNS Translator Object
#
#Description is a list or tuple of tuples of the type:
#[ ( Class, 'Gaussian', Count, CenterVector, CovarianceMatrix), ...
#  ( Class, 'Independent', Count, Center, TransformMatrix), ... 
#  ( Class, 'Complex', Count, Center, Weirdness ) ]
#
#The values for Count, Center, Weirdness etc. can be set to None. In this case defaults are used!
#The names are used in fault tolerant way, so that you can ignore case, include whitespace and abbreviate names:
#'GAUSSIAN','Gaussian Distribution', '  gauss  ', 'ga', 'Normal Distribution', 'NORMAL', 'NO', 'no' -> Gaussian Distribution
#'Complex', 'COMPLEX', 'comp. distribution', 'co', '   complex ', 'weird stuff', 'WEIRDO' -> Complex Distribution
#'independent', 'square', 'ind. distro.', 'square method...' -> Independent Distribution
#
#Dims:  Integer number > 0 for the number of dimensions this mixture should be created for. Because
#               this number must be the same across all of the distributions it's not part of the descriptions.
#Normalize      : 0/1. Default is 1 (ON). If you need direct output of the density function just turn to zero (OFF)
#In contrast to the simpler cousins of this method generates a probability matrix for ground truth.
#=======================================================================================================
QuicklyGenerate2Gaussians(Cov1, Cov2, Samples=100, Distance=2.0)
#=======================================================================================================
#FUNCTION QuicklyGenerate2Gaussians( Dimensions, Samples, Distance )
#RETURNS TRANSLATOR
#Quickly generates a gaussian problem from few parameters:
#Cov1:                          Covariance Matrix 1
#Cov2:                          Covariance Matrix 2
#Samples:                       What is the total amount of samples you'd like to get?
#Distance:                      Euclidian Distance
#=======================================================================================================
QuicklyGenerateProblem(Classes=2, Dimensions=2, Samples=100, Easy=3, Spacing=0.5)
#=======================================================================================================
#FUNCTION QuicklyGenerateProblem( Vector, Classes, GenerateForClass )
#RETURNS TRANSLATOR
#Quickly generates a gaussian problem from few parameters:
#Classes:               How many classes should be in the data?
#Dimensions:            How many features does the data have?
#Samples:                       What is the total amount of samples you'd like to get?
#Easy:                          Large numbers mean easy problems
#Spacing:                       FLOAT 0..1. Tells how evenly spaced the classes are: 1.0 evenly spaced. 0.0 random parts.
#=======================================================================================================
Reproduce(Key, Number)
#=======================================================================================================
#METHOD Reproduce( Key, Number )
#RETURNS LIST of ANYTHING
#This method creates a list with Number of Keys
#Key    : ANYTHING HASHABLE. Your label, madamme
#Number : INT. Length of list.
#=======================================================================================================
Unary(i, n)
#=======================================================================================================
#FUNCTION Unary
#RETURNS 1d Array
#Creates a vector, where one dimension is set to one and others are set to zero
#Example Unary( 1, 4 ):  array( [ 0, 1, 0, 0 ] )
#i              :       INTEGER. Which dimension should be 1
#n              :   INTEGER. How many dimensions should be in the vector.
#=======================================================================================================
VectorCount(Matrix)
#=======================================================================================================
#METHOD VectorCount( Matrix )
#RETURNS INT
#This method the number of vectors available in Matrix
#Matrix         : 2D Array
#=======================================================================================================
WhiteGaussian(Count, Dimensions)
#=======================================================================================================
#FUNCTION WhiteGaussian()
#RETURNS Translator Object
#=======================================================================================================
acos(...)
acos(x)
 
Return the arc cosine (measured in radians) of x.
add_docstring(...)
docstring(obj, docstring)
 
Add a docstring to a built-in obj if possible.
If the obj already has a docstring raise a RuntimeError
If this routine does not know how to add a docstring to the object
raise a TypeError
alterdot(...)
alterdot() changes all dot functions to use blas.
arange(...)
arange([start,] stop[, step,], dtype=None)
 
For integer arguments, just like range() except it returns an array
whose type can be specified by the keyword argument dtype.  If dtype
is not specified, the type of the result is deduced from the type of
the arguments.
 
For floating point arguments, the length of the result is ceil((stop -
start)/step).  This rule may result in the last element of the result
being greater than stop.
array(...)
array(object, dtype=None, copy=1,order=None, subok=0,ndmin=0)
 
Return an array from object with the specified date-type.
 
Inputs:
  object - an array, any object exposing the array interface, any
            object whose __array__ method returns an array, or any
            (nested) sequence.
  dtype  - The desired data-type for the array.  If not given, then
            the type will be determined as the minimum type required
            to hold the objects in the sequence.  This argument can only
            be used to 'upcast' the array.  For downcasting, use the
            .astype(t) method.
  copy   - If true, then force a copy.  Otherwise a copy will only occur
            if __array__ returns a copy, obj is a nested sequence, or
            a copy is needed to satisfy any of the other requirements
  order  - Specify the order of the array.  If order is 'C', then the
            array will be in C-contiguous order (last-index varies the
            fastest).  If order is 'FORTRAN', then the returned array
            will be in Fortran-contiguous order (first-index varies the
            fastest).  If order is None, then the returned array may
            be in either C-, or Fortran-contiguous order or even
            discontiguous.
  subok  - If True, then sub-classes will be passed-through, otherwise
            the returned array will be forced to be a base-class array
  ndmin  - Specifies the minimum number of dimensions that the resulting
            array should have.  1's will be pre-pended to the shape as
            needed to meet this requirement.
asctime(...)
asctime([tuple]) -> string
 
Convert a time tuple to a string, e.g. 'Sat Jun 06 16:26:11 1998'.
When the time tuple is not present, current time as returned by localtime()
is used.
asin(...)
asin(x)
 
Return the arc sine (measured in radians) of x.
atan(...)
atan(x)
 
Return the arc tangent (measured in radians) of x.
atan2(...)
atan2(y, x)
 
Return the arc tangent (measured in radians) of y/x.
Unlike atan(y/x), the signs of both x and y are considered.
bincount(...)
bincount(x,weights=None)
 
Return the number of occurrences of each value in x.
 
x must be a list of non-negative integers.  The output, b[i],
represents the number of times that i is found in x.  If weights
is specified, every occurrence of i at a position p contributes
weights[p] instead of 1.
 
See also: histogram, digitize, unique.
can_cast(...)
can_cast(from=d1, to=d2)
 
Returns True if data type d1 can be cast to data type d2 without
losing precision.
clock(...)
clock() -> floating point number
 
Return the CPU time or real time since the start of the process or since
the first call to clock().  This has as much precision as the system
records.
compare_chararrays(...)
concatenate(...)
concatenate((a1, a2, ...), axis=0)
 
Join arrays together.
 
The tuple of sequences (a1, a2, ...) are joined along the given axis
(default is the first one) into a single numpy array.
 
Example:
 
>>> concatenate( ([0,1,2], [5,6,7]) )
array([0, 1, 2, 5, 6, 7])
ctime(...)
ctime(seconds) -> string
 
Convert a time in seconds since the Epoch to a string in local time.
This is equivalent to asctime(localtime(seconds)). When the time tuple is
not present, current time as returned by localtime() is used.
degrees(...)
degrees(x) -> converts angle x from radians to degrees
digitize(...)
digitize(x,bins)
 
Return the index of the bin to which each value of x belongs.
 
Each index i returned is such that bins[i-1] <= x < bins[i] if
bins is monotonically increasing, or bins [i-1] > x >= bins[i] if
bins is monotonically decreasing.
 
Beyond the bounds of the bins 0 or len(bins) is returned as appropriate.
dot(...)
dot(a,b)
Returns the dot product of a and b for arrays of floating point types.
Like the generic numpy equivalent the product sum is over
the last dimension of a and the second-to-last dimension of b.
NB: The first argument is not conjugated.
dump(...)
dump(obj, file, protocol=0) -- Write an object in pickle format to the given file.
 
See the Pickler docstring for the meaning of optional argument proto.
dumps(...)
dumps(obj, protocol=0) -- Return a string containing an object in pickle format.
 
See the Pickler docstring for the meaning of optional argument proto.
empty(...)
empty((d1,...,dn),dtype=float,order='C')
 
Return a new array of shape (d1,...,dn) and given type with all its
entries uninitialized. This can be faster than zeros.
erfcinv(z)
#=======================================================================================================
#FUNCTION erfcinv()
#RETURNS DOUBLE
#z: scalar
#=======================================================================================================
fastCopyAndTranspose = _fastCopyAndTranspose(...)
_fastCopyAndTranspose(a)
frombuffer(...)
frombuffer(buffer=, dtype=float, count=-1, offset=0)
 
Returns a 1-d array of data type dtype from buffer. The buffer
argument must be an object that exposes the buffer interface.  If
count is -1 then the entire buffer is used, otherwise, count is the
size of the output.  If offset is given then jump that far into the
buffer. If the buffer has data that is out not in machine byte-order,
than use a propert data type descriptor. The data will not be
byteswapped, but the array will manage it in future operations.
fromfile(...)
fromfile(file=, dtype=float, count=-1, sep='') -> array.
 
Required arguments:
    file -- open file object or string containing file name.
 
Keyword arguments:
    dtype -- type and order of the returned array (default float)
    count -- number of items to input (default all)
    sep -- separater between items if file is a text file (default "")
 
Return an array of the given data type from a text or binary file. The
'file' argument can be an open file or a string with the name of a file to
read from.  If 'count' == -1 the entire file is read, otherwise count is the
number of items of the given type to read in.  If 'sep' is "" it means to
read binary data from the file using the specified dtype, otherwise it gives
the separator between elements in a text file. The 'dtype' value is also
used to determine the size and order of the items in binary files.
 
 
Data written using the tofile() method can be conveniently recovered using
this function.
 
WARNING: This function should be used sparingly as the binary files are not
platform independent. In particular, they contain no endianess or datatype
information. Nevertheless it can be useful for reading in simply formatted
or binary data quickly.
fromiter(...)
fromiter(iterable, dtype, count=-1)
 
Return a new 1d array initialized from iterable. If count is
nonegative, the new array will have count elements, otherwise it's
size is determined by the generator.
frompyfunc(...)
frompyfunc(func, nin, nout) take an arbitrary python function that takes nin objects as input and returns nout objects and return a universal function (ufunc).  This ufunc always returns PyObject arrays
fromstring(...)
fromstring(string, dtype=float, count=-1, sep='')
 
Return a new 1d array initialized from the raw binary data in string.
 
If count is positive, the new array will have count elements, otherwise its
size is determined by the size of string.  If sep is not empty then the
string is interpreted in ASCII mode and converted to the desired number type
using sep as the separator between elements (extra whitespace is ignored).
getbuffer(...)
getbuffer(obj [,offset[, size]])
 
Create a buffer object from the given object referencing a slice of
length size starting at offset.  Default is the entire buffer. A
read-write buffer is attempted followed by a read-only buffer.
geterrobj(...)
gmtime(...)
gmtime([seconds]) -> (tm_year, tm_mon, tm_day, tm_hour, tm_min,
                       tm_sec, tm_wday, tm_yday, tm_isdst)
 
Convert seconds since the Epoch to a time tuple expressing UTC (a.k.a.
GMT).  When 'seconds' is not passed in, convert the current time instead.
inner(...)
innerproduct(a,b)
Returns the inner product of a and b for arrays of floating point types.
Like the generic NumPy equivalent the product sum is over
the last dimension of a and b.
NB: The first argument is not conjugated.
innerproduct = inner(...)
innerproduct(a,b)
Returns the inner product of a and b for arrays of floating point types.
Like the generic NumPy equivalent the product sum is over
the last dimension of a and b.
NB: The first argument is not conjugated.
int_asbuffer(...)
interp(...)
interp(x, xp, fp, left=None, right=None)
 
Return the value of a piecewise-linear function at each value in x.
 
The piecewise-linear function, f, is defined by the known data-points fp=f(xp).
The xp points must be sorted in increasing order but this is not checked.
 
For values of x < xp[0] return the value given by left.  If left is None, then
return fp[0].
For values of x > xp[-1] return the value given by right. If right is None, then
return fp[-1].
lexsort(...)
lexsort(keys=, axis=-1) -> array of indices. Argsort with list of keys.
 
Perform an indirect sort using a list of keys. The first key is sorted,
then the second, and so on through the list of keys. At each step the
previous order is preserved when equal keys are encountered. The result is
a sort on multiple keys.  If the keys represented columns of a spreadsheet,
for example, this would sort using multiple columns (the last key being
used for the primary sort order, the second-to-last key for the secondary
sort order, and so on).  The keys argument must be a sequence of things
that can be converted to arrays of the same shape.
 
:Parameters:
 
    a : array type
        Array containing values that the returned indices should sort.
 
    axis : integer
        Axis to be indirectly sorted. None indicates that the flattened
        array should be used. Default is -1.
 
:Returns:
 
    indices : integer array
        Array of indices that sort the keys along the specified axis. The
        array has the same shape as the keys.
 
:SeeAlso:
 
  - argsort : indirect sort
  - sort : inplace sort
loads(...)
loads(string) -- Load a pickle from the given string
localtime(...)
localtime([seconds]) -> (tm_year,tm_mon,tm_day,tm_hour,tm_min,tm_sec,tm_wday,tm_yday,tm_isdst)
 
Convert seconds since the Epoch to a time tuple expressing local time.
When 'seconds' is not passed in, convert the current time instead.
ltqnorm(p)
Lower tail quantile for standard normal distribution function.
 
Modified from the author's original perl code (original comments follow below)
by dfield@yahoo-inc.com.  May 3, 2004.
 
This function returns an approximation of the inverse cumulative
standard normal distribution function.  I.e., given P, it returns
an approximation to the X satisfying P = Pr{Z <= X} where Z is a
random variable from the standard normal distribution.
 
The algorithm uses a minimax approximation by rational functions
and the result has a relative error whose absolute value is less
than 1.15e-9.
 
Author:      Peter J. Acklam
Time-stamp:  2000-07-19 18:26:14
E-mail:      pjacklam@online.no
WWW URL:     http://home.online.no/~pjacklam
maketrans(...)
maketrans(frm, to) -> string
 
Return a translation table (a string of 256 bytes long)
suitable for use in string.translate.  The strings frm and to
must be of the same length.
max(...)
max(iterable[, key=func]) -> value
max(a, b, c, ...[, key=func]) -> value
 
With a single iterable argument, return its largest item.
With two or more arguments, return the largest argument.
min(...)
min(iterable[, key=func]) -> value
min(a, b, c, ...[, key=func]) -> value
 
With a single iterable argument, return its smallest item.
With two or more arguments, return the smallest argument.
mktime(...)
mktime(tuple) -> floating point number
 
Convert a time tuple in local time to seconds since the Epoch.
newbuffer(...)
newbuffer(size)
 
Return a new uninitialized buffer object of size bytes
pow(...)
pow(x,y)
 
Return x**y (x to the power of y).
putmask(...)
putmask(a, mask, values) sets a.flat[n] = values[n] for each n where
mask.flat[n] is true.  If values is not the same size of a and mask then
it will repeat.  This gives different behavior than a[mask] = values.
pymax = max(...)
max(iterable[, key=func]) -> value
max(a, b, c, ...[, key=func]) -> value
 
With a single iterable argument, return its largest item.
With two or more arguments, return the largest argument.
pymin = min(...)
min(iterable[, key=func]) -> value
min(a, b, c, ...[, key=func]) -> value
 
With a single iterable argument, return its smallest item.
With two or more arguments, return the smallest argument.
radians(...)
radians(x) -> converts angle x from degrees to radians
rand(...)
Return an array of the given dimensions which is initialized to 
random numbers from a uniform distribution in the range [0,1).
 
rand(d0, d1, ..., dn) -> random values
 
Note:  This is a convenience function. If you want an
            interface that takes a tuple as the first argument
            use numpy.random.random_sample(shape_tuple).
randn(...)
Returns zero-mean, unit-variance Gaussian random numbers in an 
array of shape (d0, d1, ..., dn).
 
randn(d0, d1, ..., dn) -> random values
 
Note:  This is a convenience function. If you want an
            interface that takes a tuple as the first argument
            use numpy.random.standard_normal(shape_tuple).
restoredot(...)
restoredot() restores dots to defaults.
set_numeric_ops(...)
set_numeric_ops(op=func, ...)
 
Set some or all of the number methods for all array objects.  Do not
forget **dict can be used as the argument list.  Return the functions
that were replaced, which can be stored and set later.
set_string_function(...)
set_string_function(f, repr=1)
 
Set the python function f to be the function used to obtain a pretty
printable string version of an array whenever an array is printed.
f(M) should expect an array argument M, and should return a string
consisting of the desired representation of M for printing.
seterrobj(...)
sleep(...)
sleep(seconds)
 
Delay execution for a given number of seconds.  The argument may be
a floating point number for subsecond precision.
strftime(...)
strftime(format[, tuple]) -> string
 
Convert a time tuple to a string according to a format specification.
See the library reference manual for formatting codes. When the time tuple
is not present, current time as returned by localtime() is used.
strptime(...)
strptime(string, format) -> struct_time
 
Parse a string to a time tuple according to a format specification.
See the library reference manual for formatting codes (same as strftime()).
time(...)
time() -> floating point number
 
Return the current time in seconds since the Epoch.
Fractions of a second may be present if the system clock provides them.
tzset(...)
tzset(zone)
 
Initialize, or reinitialize, the local timezone to the value stored in
os.environ['TZ']. The TZ environment variable should be specified in
standard Unix timezone format as documented in the tzset man page
(eg. 'US/Eastern', 'Europe/Amsterdam'). Unknown timezones will silently
fall back to UTC. If the TZ environment variable is not set, the local
timezone is set to the systems best guess of wallclock time.
Changing the TZ environment variable without calling tzset *may* change
the local timezone used by methods such as localtime, but this behaviour
should not be relied on.
vdot(...)
vdot(a,b)
Returns the dot product of a and b for scalars and vectors
of floating point and complex types.  The first argument, a, is conjugated.
where(...)
where(condition, | x, y)
 
The result is shaped like condition and has elements of x and y where
condition is respectively true or false.  If x or y are not given,
then it is equivalent to condition.nonzero().
 
To group the indices by element, rather than dimension, use
 
    transpose(where(condition, | x, y))
 
instead. This always results in a 2d array, with a row of indices for
each element that satisfies the condition.
zeros(...)
zeros((d1,...,dn),dtype=float,order='C')
 
Return a new array of shape (d1,...,dn) and type typecode with all
it's entries initialized to zero.

 
Data
        ALLOW_THREADS = 1
BUFSIZE = 10000
CLIP = 0
Character = 'c'
Complex = 'D'
Complex0 = 'F'
Complex16 = 'F'
Complex32 = 'F'
Complex64 = 'D'
Complex8 = 'F'
DAILY = 3
EMPTY_NAMESPACE = None
EMPTY_PREFIX = None
ERR_CALL = 3
ERR_DEFAULT = 0
ERR_DEFAULT2 = 2084
ERR_IGNORE = 0
ERR_LOG = 5
ERR_PRINT = 4
ERR_RAISE = 2
ERR_WARN = 1
FLOATING_POINT_SUPPORT = 1
FPE_DIVIDEBYZERO = 1
FPE_INVALID = 8
FPE_OVERFLOW = 2
FPE_UNDERFLOW = 4
FR = FR
False_ = False
Float = 'd'
Float0 = 'f'
Float16 = 'f'
Float32 = 'f'
Float64 = 'd'
Float8 = 'f'
HOURLY = 4
Inf = inf
Infinity = inf
Int = 'l'
Int0 = 'b'
Int16 = 'h'
Int32 = 'i'
Int64 = 'l'
Int8 = 'b'
LittleEndian = True
MAXDIMS = 32
MINUTELY = 5
MO = MO
MONTHLY = 1
ModuleVerbosity = 1
NAN = nan
NINF = -inf
NZERO = -0.0
NaN = nan
NewAxis = None
PINF = inf
PZERO = 0.0
PyObject = 'O'
RAISE = 2
SA = SA
SECONDLY = 6
SHIFT_DIVIDEBYZERO = 0
SHIFT_INVALID = 9
SHIFT_OVERFLOW = 3
SHIFT_UNDERFLOW = 6
SU = SU
ScalarType = (<type 'int'>, <type 'float'>, <type 'complex'>, <type 'long'>, <type 'bool'>, <type 'str'>, <type 'unicode'>, <type 'buffer'>, <type 'numpy.int64'>, <type 'numpy.int16'>, <type 'numpy.int8'>, <type 'numpy.uint64'>, <type 'numpy.string_'>, <type 'numpy.float128'>, <type 'numpy.object_'>, <type 'numpy.complex64'>, <type 'numpy.uint32'>, <type 'numpy.uint16'>, <type 'numpy.int64'>, <type 'numpy.unicode_'>, ...)
StringTypes = (<type 'str'>, <type 'unicode'>)
TH = TH
TU = TU
True_ = True
UFUNC_BUFSIZE_DEFAULT = 10000
UFUNC_PYVALS_NAME = 'UFUNC_PYVALS'
UInt = 'u'
UInt16 = 'H'
UInt32 = 'I'
UInt8 = 'B'
UnsignedInt16 = 'H'
UnsignedInt32 = 'I'
UnsignedInt8 = 'B'
UnsignedInteger = 'u'
WE = WE
WEEKLY = 2
WRAP = 1
XMLNS_NAMESPACE = 'http://www.w3.org/2000/xmlns/'
YEARLY = 0
__author__ = 'Aleksander Lodwich'
__copyright__ = 'Copyright (C) 2008 DFKI'
__version__ = '0.1'
absolute = <ufunc 'absolute'>
accept2dyear = 1
add = <ufunc 'add'>
altzone = -7200
arccosh = <ufunc 'arccosh'>
arcsinh = <ufunc 'arcsinh'>
arctan = <ufunc 'arctan'>
arctan2 = <ufunc 'arctan2'>
ascii_letters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
ascii_lowercase = 'abcdefghijklmnopqrstuvwxyz'
ascii_uppercase = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
bitwise_and = <ufunc 'bitwise_and'>
bitwise_not = <ufunc 'invert'>
bitwise_or = <ufunc 'bitwise_or'>
bitwise_xor = <ufunc 'bitwise_xor'>
c_ = <numpy.lib.index_tricks.c_class object at 0x2863a10>
cast = {<type 'numpy.int64'>: <function <lambda> at 0x2...numpy.uint16'>: <function <lambda> at 0x227f9b0>}
ceil = <ufunc 'ceil'>
colorbar_doc = '\nAdd a colorbar to a plot.\n\nFunction signatures:...e, do not use any of the\naxes properties kwargs.\n'
conj = <ufunc 'conjugate'>
conjugate = <ufunc 'conjugate'>
cos = <ufunc 'cos'>
cosh = <ufunc 'cosh'>
daylight = 1
digits = '0123456789'
divide = <ufunc 'divide'>
divide_safe = <ufunc 'divide'>
e = 2.7182818284590451
equal = <ufunc 'equal'>
exp = <ufunc 'exp'>
expm1 = <ufunc 'expm1'>
fabs = <ufunc 'fabs'>
floor = <ufunc 'floor'>
floor_divide = <ufunc 'floor_divide'>
fmod = <ufunc 'fmod'>
frexp = <ufunc 'frexp'>
greater = <ufunc 'greater'>
greater_equal = <ufunc 'greater_equal'>
hexdigits = '0123456789abcdefABCDEF'
hypot = <ufunc 'hypot'>
index_exp = <numpy.lib.index_tricks._index_expression_class object at 0x2863b50>
inf = inf
infty = inf
invert = <ufunc 'invert'>
isfinite = <ufunc 'isfinite'>
isinf = <ufunc 'isinf'>
isnan = <ufunc 'isnan'>
ldexp = <ufunc 'ldexp'>
left_shift = <ufunc 'left_shift'>
less = <ufunc 'less'>
less_equal = <ufunc 'less_equal'>
letters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
little_endian = True
log1p = <ufunc 'log1p'>
logical_and = <ufunc 'logical_and'>
logical_not = <ufunc 'logical_not'>
logical_or = <ufunc 'logical_or'>
logical_xor = <ufunc 'logical_xor'>
lowercase = 'abcdefghijklmnopqrstuvwxyz'
maximum = <ufunc 'maximum'>
mgrid = <numpy.lib.index_tricks.nd_grid object at 0x28638d0>
minimum = <ufunc 'minimum'>
mod = <ufunc 'remainder'>
modf = <ufunc 'modf'>
multiply = <ufunc 'multiply'>
nan = nan
nbytes = {<type 'numpy.int64'>: 8, <type 'numpy.int16'>: ...umpy.float32'>: 4, <type 'numpy.complex128'>: 16}
negative = <ufunc 'negative'>
newaxis = None
not_equal = <ufunc 'not_equal'>
octdigits = '01234567'
ogrid = <numpy.lib.index_tricks.nd_grid object at 0x2863910>
ones_like = <ufunc 'ones_like'>
pi = 3.1415926535897931
pkgload = <numpy._import_tools.PackageLoader instance at 0x2da3ea8>
printable = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~ \t\n\r\x0b\x0c'
punctuation = '!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~'
r_ = <numpy.lib.index_tricks.r_class object at 0x2863990>
rcParams = {'axes.axisbelow': False, 'axes.edgecolor': 'k', 'axes.facecolor': 'w', 'axes.formatter.limits': (-7, 7), 'axes.grid': False, 'axes.hold': True, 'axes.labelcolor': 'k', 'axes.labelsize': 12, 'axes.linewidth': 1.0, 'axes.titlesize': 14, ...}
rcParamsDefault = {'axes.axisbelow': False, 'axes.edgecolor': 'k', 'axes.facecolor': 'w', 'axes.formatter.limits': (-7, 7), 'axes.grid': False, 'axes.hold': True, 'axes.labelcolor': 'k', 'axes.labelsize': 12, 'axes.linewidth': 1.0, 'axes.titlesize': 14, ...}
reciprocal = <ufunc 'reciprocal'>
remainder = <ufunc 'remainder'>
right_shift = <ufunc 'right_shift'>
rint = <ufunc 'rint'>
s_ = <numpy.lib.index_tricks._index_expression_class object at 0x2863b90>
sctypeDict = {0: <type 'numpy.bool_'>, 1: <type 'numpy.int8'>, 2: <type 'numpy.uint8'>, 3: <type 'numpy.int16'>, 4: <type 'numpy.uint16'>, 5: <type 'numpy.int32'>, 6: <type 'numpy.uint32'>, 7: <type 'numpy.int64'>, 8: <type 'numpy.uint64'>, 9: <type 'numpy.int64'>, ...}
sctypeNA = {'?': 'Bool', 'B': 'UInt8', 'Bool': <type 'numpy.bool_'>, 'Complex128': <type 'numpy.complex256'>, 'Complex32': <type 'numpy.complex64'>, 'Complex64': <type 'numpy.complex128'>, 'D': 'Complex64', 'F': 'Complex32', 'Float128': <type 'numpy.float128'>, 'Float32': <type 'numpy.float32'>, ...}
sctypes = {'complex': [<type 'numpy.complex64'>, <type 'numpy.complex128'>, <type 'numpy.complex256'>], 'float': [<type 'numpy.float32'>, <type 'numpy.float64'>, <type 'numpy.float128'>], 'int': [<type 'numpy.int8'>, <type 'numpy.int16'>, <type 'numpy.int32'>, <type 'numpy.int64'>], 'others': [<type 'bool'>, <type 'object'>, <type 'str'>, <type 'unicode'>, <type 'numpy.void'>], 'uint': [<type 'numpy.uint8'>, <type 'numpy.uint16'>, <type 'numpy.uint32'>, <type 'numpy.uint64'>]}
sign = <ufunc 'sign'>
signbit = <ufunc 'signbit'>
sin = <ufunc 'sin'>
sinh = <ufunc 'sinh'>
square = <ufunc 'square'>
subtract = <ufunc 'subtract'>
tan = <ufunc 'tan'>
tanh = <ufunc 'tanh'>
timezone = -3600
true_divide = <ufunc 'true_divide'>
typeDict = {0: <type 'numpy.bool_'>, 1: <type 'numpy.int8'>, 2: <type 'numpy.uint8'>, 3: <type 'numpy.int16'>, 4: <type 'numpy.uint16'>, 5: <type 'numpy.int32'>, 6: <type 'numpy.uint32'>, 7: <type 'numpy.int64'>, 8: <type 'numpy.uint64'>, 9: <type 'numpy.int64'>, ...}
typeNA = {'?': 'Bool', 'B': 'UInt8', 'Bool': <type 'numpy.bool_'>, 'Complex128': <type 'numpy.complex256'>, 'Complex32': <type 'numpy.complex64'>, 'Complex64': <type 'numpy.complex128'>, 'D': 'Complex64', 'F': 'Complex32', 'Float128': <type 'numpy.float128'>, 'Float32': <type 'numpy.float32'>, ...}
typecodes = {'All': '?bhilqpBHILQPfdgFDGSUVO', 'AllFloat': 'fdgFDG', 'AllInteger': 'bBhHiIlLqQpP', 'Character': 'S1', 'Complex': 'FDG', 'Float': 'fdg', 'Integer': 'bhilqp', 'UnsignedInteger': 'BHILQP'}
tzname = ('CET', 'CEST')
uppercase = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
which = ('numpy', 'rc')
whitespace = '\t\n\x0b\x0c\r '

 
Author
        Aleksander Lodwich