Walk a tree of generators without yielding things recursively. Check out the docstring. It has an example ;)
Find all occurencies of given map in map list, yielding index of first match and subsequently indexes of all other found. All maps in list have the same structure, pattern for search can have the same structure or less keys.
Yielding from generator used inside another generator.
This is a research project yielding a basis for a configuration management system (CMS) designed around the open source development (OSD) process. By first analyzing the OSD process and tools in its current state, the project aims to develop a...
Styx stands for Soogest Template Yielding eXtensible (FrameWork)Abstract object model approach to an abstract data source written in PHP.
For vectors, Y = RUNMEAN(X,M) computes a running mean (also known as moving average) on the elements of the vector X. It uses a window of 2*M+1 datapoints. M an positive integer defining (half) the size of the window. In pseudo code: Y(i) =...
When you use an analoginput object from the Data Acquisition Toolbox to capture data which which spans multiple triggers, the data from each trigger is separated by NaNs. This function strips out the NaNs and reshapes the data, adding one...
I wrote this after reading The Alphanum Algorithm (http://www.davekoelle.com/alphanum.html) by David Koelle a few years ago; my goal was to improve the performances of the Python version of his scripts.
My version is approximatly 10...
A friend and I were discussing the possibility of creating every possible image that is 800x600x24 (800 pixels wide by 600 pixels tall and using 24-bit color). This recipe is a proof-of-concept program showing what is possible with just a 2x2...
The standard lib os.walk() function provides a topdown parameter that determines whether entries are yielded in a top-down or a bottom-up order. Sometimes though you may want each directory yielded twice; once before any of its children...
Python 2.5 improved the support for generators, making it easier to use coroutines. If you want to use coroutines, however, you can not transfer control out of nested functions. You can eliminate this restriction by systematically...
SUMPDF Probability distribution of the sum of distributions
[S,P,C]=SUMPDF(X1,P1,N1,X2,P2,N2,...) will return the distribution of the sum of distribution P1, at values at X1, N1 times plus the distribution P2, at values in X2, N2...
Returns a matrix of iid random numbers distributed according to the one-parameter Mittag-Leffler distribution with index (or exponent) beta and scale parameter gamma_t. The size of the returned matrix is the same as that of the input matrices beta...
This is a three-factor analysis of variance design in which there are repeated measures on two of the factors. In repeated measures designs, the same participants are used in all conditions. This is like an extreme matching. This allows for...
Returns the distribution of the function FUN applied to the set of distributions given in VARARGIN PDFFUN Apply a function to a set of probability distributions [S,P,C]=PDFFUN(FUN,VARARGIN) will return the distribution of the function...
Distribution of unique sums among all combinations of vectors. ALLSUMS Distribution of unique sums among all combinations of vectors.
[S,C]=ALLSUMS(IN) depending on input IN, will do one of two different procedures for calculating...
This project is being abandoned. If you have interest in continuing the project, please contact barrett
The module implements a form with which the user can take the WHO-5 (http://www.who-5.org), a well-being/depression screening... |