RandomState.weibull()

RandomState.weibull(a, size=None) Draw samples from a Weibull distribution. Draw samples from a 1-parameter Weibull distribution with the given shape parameter a. Here, U is drawn from the uniform distribution over (0,1]. The more common 2-parameter Weibull, including a scale parameter is just . Parameters: a : float Shape of the distribution. size : int or tuple of ints, optional Output shape. If the given shape is, e.g., (m, n, k), then m * n * k samples are drawn. Default is None

generic.prod()

generic.prod() Not implemented (virtual attribute) Class generic exists solely to derive numpy scalars from, and possesses, albeit unimplemented, all the attributes of the ndarray class so as to provide a uniform API. See also The

numpy.degrees()

numpy.degrees(x[, out]) = Convert angles from radians to degrees. Parameters: x : array_like Input array in radians. out : ndarray, optional Output array of same shape as x. Returns: y : ndarray of floats The corresponding degree values; if out was supplied this is a reference to it. See also rad2deg equivalent function Examples Convert a radian array to degrees >>> rad = np.arange(12.)*np.pi/6 >>> np.degrees(rad) array([ 0., 30., 60., 90., 120.,

broadcast.shape

broadcast.shape Shape of broadcasted result. Examples >>> x = np.array([1, 2, 3]) >>> y = np.array([[4], [5], [6]]) >>> b = np.broadcast(x, y) >>> b.shape (3, 3)

numpy.sctype2char()

numpy.sctype2char(sctype) [source] Return the string representation of a scalar dtype. Parameters: sctype : scalar dtype or object If a scalar dtype, the corresponding string character is returned. If an object, sctype2char tries to infer its scalar type and then return the corresponding string character. Returns: typechar : str The string character corresponding to the scalar type. Raises: ValueError If sctype is an object for which the type can not be inferred. See also obj2s

HermiteE.trim()

HermiteE.trim(tol=0) [source] Remove trailing coefficients Remove trailing coefficients until a coefficient is reached whose absolute value greater than tol or the beginning of the series is reached. If all the coefficients would be removed the series is set to [0]. A new series instance is returned with the new coefficients. The current instance remains unchanged. Parameters: tol : non-negative number. All trailing coefficients less than tol will be removed. Returns: new_series : seri

recarray.fill()

recarray.fill(value) Fill the array with a scalar value. Parameters: value : scalar All elements of a will be assigned this value. Examples >>> a = np.array([1, 2]) >>> a.fill(0) >>> a array([0, 0]) >>> a = np.empty(2) >>> a.fill(1) >>> a array([ 1., 1.])

generic.shape

generic.shape tuple of array dimensions

numpy.testing.decorate_methods()

numpy.testing.decorate_methods(cls, decorator, testmatch=None) [source] Apply a decorator to all methods in a class matching a regular expression. The given decorator is applied to all public methods of cls that are matched by the regular expression testmatch (testmatch.search(methodname)). Methods that are private, i.e. start with an underscore, are ignored. Parameters: cls : class Class whose methods to decorate. decorator : function Decorator to apply to methods testmatch : compiled

numpy.npv()

numpy.npv(rate, values) [source] Returns the NPV (Net Present Value) of a cash flow series. Parameters: rate : scalar The discount rate. values : array_like, shape(M, ) The values of the time series of cash flows. The (fixed) time interval between cash flow ?events? must be the same as that for which rate is given (i.e., if rate is per year, then precisely a year is understood to elapse between each cash flow event). By convention, investments or ?deposits? are negative, income or ?with