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 FUN applied to the set of distributions given in VARARGIN The output vectors, S, P, and C, are respectively the list of unique outcomes, probability of yielding that outcome, and the total...
This function allows you to calculate the Method Resolution Order (MRO, or sometimes linearization) of a class or base classes. This is the so-called "C3" algorithm, as used by Python (new-style classes, from version 2.3 and higher). The...
A simple little task, how to find the intersection of two hashes. There's probably many ways to do this but there is one way to avoid...
Two simple functions for optimizing breakpoint placement of 1D and 2D tables. Given an input 1D or 2D table and a desirable number of breakpoints, these functions will calculate the best placement of the breakpoints to fit the input table....
The function gets the 2nd derivatives of a vector with two finite boundaries The function gets the 2nd derivatives of a vector with two finite boundaries.
function V2ndDx = get_V2ndDx(V,delta_x,INDstart,INDend)
Input:
This is a part of InSPIRE for checking the similarity of two figures possibly after registration. This provides the users a way to display moving and fixed images in a checker-board pattern. When alpha1=1 and alpha2=0, this program returns...
The matrix implementation of the two-layer Multilayer Perceptron (MLP) neural networks. The matrix implementation of the MLP and Backpropagation algorithm for two-layer Multilayer Perceptron (MLP) neural networks.
Marcelo Augusto...
This function gets the 1st derivatives of a vector V with two boundaries Input: V = the input vector, 1D data delta_x = delta x INDstart = first index INDend = last index
Output: VDx = 1st derivative of V...
A script evaluating PSNR metric of two YUV420 frames usage: psnr.py filename1.yuv filename2.yuv frame_width frame_height
Alternatively if filename1 contains width and height in the form file-1200x1600.yuv, the script will...
This recipe allows one to use the "with" statement to time sections of code.
This example basically explains the real time update of simulink variables in GUI. The example displays the updated data in gauge and axes.
Copy the files in your workspace. Type "my_gui" in command window. Press...
The Time Series Toolbox is a set of software components that simplify the task of building applications that record, process, store and publish time series of observations. Current main application area are sensor networks.
Design-Time Attributes of Custom Controls is an article through which you can know about how to set various attributes for the custom controls. Attributes are similar to the keywords that contains information about the property, class, method...
This recipe shows a way to generate a list of all strings (in this case, string=list of symbols) of a given alphabet having a specified length; by using list comprehensions.
UPDATE: The case for alphabet length = 1 is fixed.
We examined quantum quantity of two qubit system.The ferroelectrics vs decohence rate have been examined. The results show first order transition. This is photo induced effect.
Compares probabilities of two binomial samples X, Y from a Bernoully experiments with probability p1 for set X and p2 for set Y
Test the null hypothesis H_0: p1 = p2 vs alternatives H_1: p1 > p2 H_2: p1 <...
Get the Most out of .Net is a web based tutorial which deals with methods which are involved in increasing the performance of the .NET application. Here author discusses about string builder objects which has to be used instead of cancatenation,...
The ZIPCodeDistance is a PHP script that can calculate the approximate distance of any two postal ZIP codes of USA. The result will be displayed in miles. The script is included with a database which contains nearly 40,000 entries of city and...
I found this equation in Wikipedia page for "List of fractals by Hausdorff dimension". The problem is how to calculate the scaling coefficients for any given IFS fractal. You can see the heuristic I used in the code. It...
Usage: I=mi(A,B), where A and B are equally sized images/signals.
Function hist2 (included) is used to determine the joint histogram of the images/signals. All histograms use 256 bins.
Assumptions: 1) 0*log(0)=0, 2) mutual... |