Variables Function
Sometimes inside a decorator that creates a function with a generic (*args, **kwargs) signature, you want to access a value passed for a particular parameter name to a wrapped function, but don't know whether that value will be passed as a positional or keyword argument, or whether the wrapped...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (52): Finding the value passed to a function by name Download |
This function can extract a inner function from a class or a function. It may be useful when writing a unit test code.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (53): Extract a inner function from a class Download |
This script defines a simple but useful class that emulates a function to gracefully permit latent assignment. In other words, you can use the emulating class as a valid function in assignments with the ability to later associate a function to perform the actual operations.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (53): Function emulation using __call__ Download |
This simple generator function is used to call a function X times per second.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (57): Call a function/method X times per second Download |
A recursive function to get permutation of a list script allows you to make permutation on a list of objects. The script does not work on repeated items in the list.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (56): A recursive function to get permutation of a list Download |
This script contains two classes that show two styles of function composition. The difference is only when the second function (g) returns a tuple. compose function passes the results of g as a tuple, mcompose treats it as a tuple of args to pass along. Note that extra args provided to...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (54): Function composition Download |
This script contains a function that finds out the gcd(a,b)(great common divisor of a and b) as a linear conbination of a anb b, ax by=gcd(a,b).
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (58): Extended great common divisor function Download |
Here's a slick way to display table Selects in your PL/SQL via DBMS_OUTPUT without using any INTO variables.
Platforms: JavaScript
License: Freeware | Size: 10 KB | Download (53): Display table Selects in PL/SQL without using any INTO variables Download |
This script allows you to graph any function you enter on the scale of your choice, assuming you use the correct javascript syntax.For example, to use Cos x, use Math.cos(x). Or, for x^2, use Math.pow(x, 2), etc.
Platforms: JavaScript
License: Freeware | Size: 10 KB | Download (48): Function Grapher Script Download |
This function very efficiently generates a Truth Table matrix of arbitrary, user specified dimension.The order of the Truth Table is limited only by the user's available system memory. The function is highly efficient, written using only three variables in 15 lines of MATLAB code.While this is...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (45): Function To Generate Truth Table Download |
javascript GET VARIABLES allows you to read form variables from static HTML. Combined with the document.write() method, you can actually add dynamic content to regular HTML. Given a choice, server side processing of form variables is preferable.
Platforms: JavaScript
License: Freeware | Size: 10 KB | Download (59): javascript GET VARIABLES Download |
This simple m-file plots the Soft Handover probability as a function of the Soft Handover Threshold value used in the UTRA Soft Handover Algorithm. The relationship has been dertived by taking the ratio between the Cell area where Soft Handovers are enabled and the total Cell area.
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (46): Soft Handover Probability as a function Download |
VIDEO TUTORIAL: Serial communication (TX and RX) using SERIAL Matlab function. For Bluetooth and RS-232 devices applications. (Narration in Spanish).
Platforms: Matlab
License: Freeware | Size: 5.49 MB | Download (51): VIDEO TUTORIAL: Serial communication (TX and RX) using SERIAL Matlab function Download |
This function generates random numbers distributed according to the Laplace distribution using the Probability integral transformation
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (48): Laplace random variables Download |
[dec_cod, code_bin, code_book] = lempel_ziv(alf, str)It's a function with three output variables and two input variables.'dec_cod' is the decimal code that codify the input string 'str'.'code_bin' is the binary code of the string obtained from the 'dec_cod' conversion.'code_book' is the code-book...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (39): Example of Lempel Ziv coding Download |
To use this function just define a variable say var,var = pnseq(a, b, c);for a, b and c refer to the zip file
Platforms: Matlab
License: Freeware | Size: 20.48 KB | Download (45): Function to generate PN sequence Download |
The zip file contains functions to calculate an Ambiguity Function (XAMB), Upsampled and Interpolated Correlation (XCORRU), and Coherence Function (XCOH). A prefilter can be specified in each function to "sharpen" correlation peaks.XAMB calculates an estimate of the (cross-)ambiguity function. A...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (42): Calculate Ambiguity Function and Utilities Download |
L-BFGS-B is a collection of Fortran 77 routines for solving nonlinear optimization problems with bound constraints on the variables. One of the key features of the nonlinear solver is that the Hessian is not needed. I've designed an interface to the L-BFGS-B solver so that it can be called like...
Platforms: Matlab
License: Freeware | Size: 61.44 KB | Download (46): MATLAB interface for L-BFGS-B Download |
function p_min=bisection(func,int,iter,tol_x,tol_f) It calculates the zero of a regular real function with one variable. p_min is the solution and represents the abscissa's value of the zero. The input variables are: -func: it's a string that represents the function in the variable 'x'. -int:...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (43): Bisection's method Download |
SpinCalc is a consolidated matlab function that will convert any rotation data between the 4 types included. Will also convert between 2 different Euler angle set types.Multiple orientations can be input. For N orientations:DCM ===> 3x3xN multidimensional arrayEA### ===> Nx3 matrixEuler Vectors...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (43): Function to Convert between DCM, Euler angles, Quaternions, and Euler vectors Download |