for cody challenge
Find the sum of all the numbers of the input vector x.
For several different reasons it could occur that we need to produce a signal from the sum of several harmonic components. In the usual case of Fourier analysis, FFT and IFFT are likely the best choice. However it could happen that: - The...
The MATLAB file contains a method to find the value of pi. This is just an extension of the general method of finding pi from within a circle. It uses 3D-matrices and some more stuffs, which can be very helpful for educational purposes. Also, do...
The role of private UDDI nodes in Web services, Part 1 is an online ASP.NET article for one of the advanced technology UDDI, involved in developing web services. The author has focussed on the ultimate role of UDDI in developing web services and...
The algorithm is based on the idea that the next larger prime after one prime is the sum of the two smaller previous minus three prime numbers back. For the first five prime numbers 2,3,5,7,11 this pattern is not true also it is not...
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...
This recipe gets the sizes of all the monitors on a multi-monitor Windows PC. It gets both the actual resolution and the usable ("work") resolutions. The usable resolution excludes the taskbar and docked applications.
This function find the percentile of a list of values. Note that the list must be sorted already.
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...
The function scans all subfolders of given directory, and returns a list of all subfolders and their size. The size of a folder is the sum of all its files size + sum of all its subfolders size.
this will find the solution of U''=k*U*U' by using taylor series 3rd order and secant method
it gives an idea about the nonlinear ode method and also gives the idea of solving problem in matlab
Find the projection of point P in R^n on the ellipsoid
E = { x = x0 + U*(z.*radii) : |z| = 1 }, where U is orthogonal matrix of the orientation of E, radii are the axis lengths, and x0 is the center.
Or on generalized conic E...
Find the set of elements in input_array that are closest to elements in target_array. Record the indices of the elements in target_array that are within tolerance, tol, of their closest match. Also record the indices of the...
The number on each dial is equal to the sum of the numbers of its four neighbors (vertical & horizontal) modulo 3 (where neighbors can be either setting on dials or the fixed, carved numbers around the edge).
One of the online ASP learning module that comes with detailed explanation to let you understand quickly on how to find the position of an array item. It describes the FOR LOOP function to go through every element when you want to know the...
This recipe implements the concept of asynchronous socket programming in a more straighforward way than in the modules asyncore and asynchat of the standard distribution, which I find difficult to understand
lowers the case of all the items found in a specified directory
The Expectation-Maximization algorithm (EM) is widely used to find the parameters of a mixture of Gaussian probability density functions (pdfs) or briefly Gaussian components that fits the sample measurement vectors in maximum likelihood sense...
Amicable numbers are two different numbers so related that the sum of the proper divisors of the one is equal to the other, one being considered as a proper divisor but not the number itself. Such a pair is (220, 284); for the proper divisors of...
The code is explained in the article: Okunev, Pavel, "Fast Computation of the Economic Capital, the Value at Risk and the Greeks of a Loan Portfolio
in the Gaussian Factor Model" (July 1, 2005).... |