Expected Returns
[Th, H] = JACOBITHETAETA(U,M) returns the values of the Jacobi's theta and eta elliptic functions TH and H evaluated for corresponding elements of argument U and parameter M.
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (40): Jacobi Theta and Eta Functions Download |
function [optW, C, W] = sskernel(x,W,str)% [optW, C, W] = sskernel(x,W,str)%% Function `sskernel' returns an optimal bandwidth (standard deviation)% of the Gauss density function used in kernel density estimation.% Optimization principle is to minimize expected L2 loss function between% the...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (52): Kernel Bandwidth Optimization Download |
MYRANDPERM(A) returns matrix A with elements randomly permuted. This function uses RANDPERM.
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (39): MYRANDPERM -- A simple variation on RANDPERM Download |
MEANCENT - for a dataset, returns the mean and mean-centered set.Many applications require mean-centering of a dataset.
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (43): meancent Download |
Returns false when code is executing in MATLAB or another MATLAB variant.
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (39): Is Octave Download |
The subroutine returns a spline which represents the jth derivative of a given spline as produced by mkpp. It is based on the Mathworks solution found at:http://www.mathworks.com/support/solutions...html?product=ML
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (39): spline_deriv Download |
OUTSTRING=WRAPSTRING(INSTRING, DELTA) returns a wrapped string of INSTRING, that fits inside the Command Window Size, with right leading edge of DELTA Example:alpha = ' ABC';InString = alpha(randi(4,1,500))OutString=wrapstring(InString)
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (40): Wrapped String Download |
Counts all cycles in input graph up to (optional) specified size limit, using a backtracking algorithm. Designed for undirected graphs with no self-loops or multiple edges. Returns count of each size cycle from 3 up to size limit, and elapsed time.Algorithm is guaranteed to find each cycle...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (44): Count all cycles in simple undirected graph Download |
Computes the ZCA whitening of a data matrix and returns the whitened data and whitening/dewhitening transformation matrices.
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (63): Data matrix whitening (Sripts) Download |
Y = UPSIDEVARIANCE(Y) returns the upside variance for columns of variable Y.Y = UPSIDEVARIANCE(Y, m) returns the upside variance using vector m as expected value for columns of variable Y.====================================================Upside variance is defined as the average sum of squared...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (39): Upside variance Download |
Y = UPSIDECORRELATION(Y) returns the upside correlation for columns of variable Y.Y = UPSIDECORRELATION(Y, m) returns the upside correlation using vector m as expected value for columns of variable Y.====================================================Upside correlation is defined as the upside...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (43): Upside correlation Download |
Returns the order of magnitude of one or more numbers. Works on nd arrays.Ex:order( 1.2e-5 ) will return -5order(1) = 0order( 1.12344e8 ) = 8
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (44): Order of magnitude of number Download |
Y = DOWNSIDECORRELATION(Y) returns the downside correlation for columns of variable Y.Y = DOWNSIDECORRELATION(Y, m) returns the downside correlation using vector m as expected value for columns of variable Y.====================================================Downside correlation is defined as...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (39): Downside correlation Download |
Y = DOWNSIDEVARIANCE(Y) returns the downside variance for columns of variable Y.Y = DOWNSIDEVARIANCE(Y, m) returns the downside variance using vector m as expected value for columns of variable Y.===================================================Downside variance is defined as the average sum of...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (43): Downside variance Download |
knanmean(X,[dim]) returns the average of matrix X on dimension dim, treating NaNs as missing values.Contrarly to nanmean, works on n-dimensions matrices
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (40): knanmean Download |
The function OutcomeSequence.m solve brain teasers such as:1. You toss a coin, what is the expected number of tosses for you to get the sequence 'Tails-Heads-Tails' ?2. You throw a dice, what is the expected number of throws for you to get the sequence '1, 2, 3, 2, 1' ?3. You randomly hit your...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (40): Brain Teaser Solver Download |
SUBPLACE Computes 'Position' vectors for a center-aligned set of subplots of varying row lengthssubplace(R), R is a vector specifying the number of subplots in each rowsubplace([3 2]) - returns a 5x4 vector with the position vectors of 5 plots in rows of 3 and 2.subplace([3 2],1) - returns a 1x4...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (39): subplace Download |
GETRGB returns the RGB triplet for matlab color strings, like 'yellow' or 'm'.getrgb('y') --> [1 1 0]Version 1.0 (april 2008)
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (39): GETRGB Download |
A simple algorithm that returns the points (x and y values) for a line between two points (x1,y1) and (x2,y2).
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (39): linepoints Download |
YESNO - returns true for y-key, false for n-keyISYES = YESNO waits for a keypress of either the Y-key or N-key and returns a logical one (true) if the Y-key was pressed, and a logical zero (false) if the N-key was pressed. Example: fprintf('nHere is a number for you: %5.0f', 1000*rand) while(1)...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (50): YESNO Download |