Contents:
Tables:
For example when p = 1 and q = 2:
For example when p = 2 and q = 2:
For example when p = 1 and q = 2:
cdiv returns a 2 x n matrix with the result of the division of the two vectors of complex numbers. If both ma and mb have no imaginary part, the return value will be 1 x n.
cmul returns a 2 x n matrix with the result of the multiplication of the two vectors of complex numbers. If both ma and mb have no imaginary part, the return value will be 1 x n.
csqrt returns a 2 x n matrix with the square root of the vector of complex numbers.
If ma is m x n, and va is 1 x q the returned matrix is (q+1) x n (any remaining columns of va are ignored).
If ma is m x n, and va is 1 x q the returned matrix is m x (q+1) (any remaining columns of va are ignored).
cumprod computes:
If vp is 1 x p, the same coefficients are applied to each column.
If vp is n x p, each row will have coefficients specific to each column of the recursive series.
Finally, if vp is T x p, the same coefficients are applied to each column, but the coefficients are specific to each row (time-varying coefficients).
cumsum computes:
For example, if the original matrix has bandwidth p=3, it is stored in ma as:
Note that the singular values are in decreasing order, with the columns of U,V sorted accordingly.
If inverse equals 1, the return value is a 2 x s matrix which holds the inverse Fourier transform; s is the smallest power of 2 which is >= n.
In addition, the following letters can be used in the smode argument:
%[* or #][width]type
The width argument specifies the width of the input field. A * suppresses assignment. A # can only be used with m and M.
So when a file is opened as "rbf", fseek(file, 'f', r) moves the file pointer to row r in the .fmt file.
isdotfeq returns a matrix if either argument is a matrix; the matrix consists of 0's and 1's: 1 if the comparison holds, 0 otherwise. If both arguments are scalar, isdotfeq is equal to isfeq. In both cases the current fuzziness value is used.
The log10 function returns the logarithm (base 10) of each element of ma, of double or matrix type.
The chosen default values for the tolerances are:
eps1=1e-4, eps2=5e-3.
The supplied func argument should have the same format as in MaxBFGS.
The meanr function returns a T x 1 matrix holding the means of the rows of ma.
The supplied func argument should have the format as documented under MaxBFGS.
The supplied func argument should have the following format:
%r the next argument contains row labels (array of strings), %c the next argument contains column labels (array of strings).
The default format strings are:
The format specification is similar to that for the printf function of the C language:
%[flag][width][.precision]type
The width argument specifies the width of the output field. The precision argument specifies the number of significant digits (type is gG) number of digits after the decimal point (type is eEf); the default is 6 if precision is absent.
The probabilities are accurate to about 10 digits. The return type is derived as follows:
The prodr function returns a T x 1 matrix which holds the product of all row elements of ma.
The quantiles are accurate to about 10 digits. The return type is derived as follows:
The quantiler function returns a T x q matrix holding the requested quantiles of the rows of ma. If no second argument is used the return value is a T x 1 matrix holding the medians.
The matrix is filled by row. Note that, if both r and c are 1, the return value is a scalar of type double!
The von Mises is generated between 0 and 2pi, with mean direction pi, corresponding to probmises(.,M_PI,kappa). To use a different mean:
The reverser function returns an m x n matrix which has the rows of ma in reverse order.
setlower returns ma with the strict lower diagonal replaced by that of ml. setlower(ma, ml, mdiag) corresponds to setdiagonal( setlower(ma, ml), mdiag).
setupper returns ma with the strict upper diagonal replaced by that of ml. setupper(ma, ml, mdiag) corresponds to setdiagonal( setupper(ma, ml), mdiag).
sinh returns the sine hyperbolicus of ma, of double or matrix type.
sqr returns the square of the elements of ma. If the input to sqr is a double or matrix, the return type is a double or matrix. If the input is an integer, the return type is integer unless the result would overflow in integer computation. In that case the return type is double in order to represent the result.
If s is a string, strfind will return an integer which is the index of the first occurrence of s in as. If the string is not found, the return value is -1. If s is an array of n strings, strfind will return an 1 by n matrix, with, for each string in s, the index of the first occurrence in as (-1 if the string is not found). deletec with second argument -1 can be used to remove the -1 entries.
The sumr function returns a T x 1 matrix which holds the sum of the row elements of ma.
The sumsqrr function returns a T x 1 matrix which holds the sum of the squares of the row elements of ma.
The tail probabilities are accurate to about 10 digits. The return type is derived as follows:
tanh returns the tangent hyperbolicus of ma, of double or matrix type.
The timespan function returns a string holding the time lapsed since the time argument.
truncf is fuzzy truncation.
The varr function returns a T x 1 matrix holding the variances of the rows of ma.