Calculating Expected Return
While evolving code, there is often a need to enrich an existing simple return scheme of a function by extra/optional return values. Using (variable lenght) return tuples often introduces puzzles - and the pychecker yells. In such cases the RICHVALUE recipe offers a transparent method for adding...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (55): RICHVALUE Download |
This script memoizes, but clears cache when last function call returns.It is suitable for dynamic programming.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (52): Memoization with cache cleared on return Download |
This script creates an iterator which returns N-tuples built from the incoming items from another iterator. It is useful, for example, when you need items two at a time.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (50): Iterator to return items N-at-a-time Download |
A given polynomial p(x) is transformed into a rational function r(x). The poles and residues of the derived rational function are found to be equivalent to the roots and multiplicities of the original polynomial. p(x) = Given polynomial = PROD[k=1:K]{(x - z_k)^m_k} d(x) = (d/dx)p(x) g(x) =...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (45): Multiple-root polynomial solved by partial fraction expansion Download |
Fixes x data so that interp1 doesn't return error:'The values of X should be distinct.'Checks for duplicate values in input 1D data array and returns array where all values are distinct. If duplicates are found, values are separate by small value (eps). useage:x = nonduplicate(x); yi =...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (39): nonduplicate Download |
MATLAB implementation of IGRF11 fortran code as function for calculating Earth mean magnetic field. Implementation has been modified to default to GPS reference coordinates with output B components North, East, and Vertical. Spherical harmonic coefficients are derived from downloaded Excel...
Platforms: Matlab
License: Freeware | Size: 1.01 MB | Download (60): IGRF Magnetic Field Download |
A Simple Pack of Tools for Plotting Lattices and Crystals and Calculating Their Properties. Description is in each file.
Platforms: Matlab
License: Freeware | Size: 102.4 KB | Download (46): Solid State Physics Simulation Pack Download |
calculating torque at 3 joints, angle , angular accln, angular velocity
Platforms: Matlab
License: Freeware | Size: 1.44 MB | Download (45): Force/Position control of a Robot Manipulator using PID controller Download |
EUDMODEL(DVH), where DVH is a 2 column matrix corresponding to the cumulative, not differential, dose volume histogram. The 1st column corresponds to increasing absolute dose or percentage dose values, and the 2nd column to the corresponding absolute or relative volume value. The matrix must have...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (57): Matlab program for calculating EUD-based NTCP and TCP in external beam radiotherapy Download |
This software is for calculating the CIE chromaticity co-ordinates of phosphor materials using the photo luminescence data. The software also shows the position of the co-ordinates in chromaticity diagram and expected color of the material. Please note that the color predicted by the software...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 2.79 MB | Download (56): CIE Coordinate Calculator Download |
The ISA Chart is generated at standard conditions by calculating the variations of relative temperature, relative pressure and relative density, all of them functions of altitude variations. Absolute variables are also considered.
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (45): ISA chart Download |
It is reentrance problems meaning cardiac signal return back to excite again the heart in investigation of reentrance 7.1)free download heart VI12)ckick run and time calcul is about 2mn.3)at end click general scope of heart sinus,atrilal,his and ventricular from up to down.
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (45): Reentrance Problems of Heart VI1 simulator simulink investigation 7 Download |
This function uses the auction principle to return the optimal assignment and the dual prices. It performs quite well, and is way faster than the hungarian algorithm as the number of points increases. More details on the auction algorithm can be found on D. Bertsekas homepage...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (42): AuctionJacobi Download |
Calculates Average Roughness, RMS Roughness, Skewness and Kurtosis. Has an option of filtering low-frequency and high-frequency components of images and calculating roughness for each of the separated images (waviness and roughness components).Has an option to apply PCA model to roughness...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 30.72 KB | Download (55): GUI for calculating roughness parameters of images Download |
Disclosed are methods to compute the precise value of the logarithm of a sum and the logarithm of a subtraction.A number of practical problems can result in having too big or small values in intermediate values of a calculation. Then one tries to take logarithm of these values and operate on...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 102.4 KB | Download (40): Methods for calculating precise logarithm of a sum and subtraction Download |
an perform a mixed-model ANOVA on simple designs with one between-subjects factor and one within-subjects (repeated-measures) factor and either display a results table or simply return the values within.See comments at top of file for full information.
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (49): Mixed (Between/Within Subjects) ANOVA Download |
Return the optimal path given the adjacency/cost sparse matrix and source/destination nodes.Run mexme_dijkstra.m to compile mex-files on your own-plateformRun test_dijkstra.m for the demo
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (45): dijsktra Download |
This is a complete set of MATLAB codes for calculating effective Pitzer inertias for large amplitude torsions. Specific examples included in the zip file were taken from the publication by Bryan M. Wong, Ryan L. Thom, and Robert W. Field in The Journal of Physical Chemistry A 110, 7406 - 7413...
Platforms: Matlab
License: Freeware | Size: 256 KB | Download (45): Pitzer Inertias Download |
Return same information than with Matlab command feature('memstats') but in structure form.
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (44): featurememstats Download |
Example:eomdateAN(2007,0) will return the date of 31.12.2006eomdateAN(2007,-1) will return the date of 30.11.2006eomdateAN(2007,-12) will return the date of 31.12.2005eomdateAN(2007,13) will return the date of 31.01.2008
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (43): eomdateAN Download |