Gram Positive
This submission contains the code used to verify the claims made about pSpace, NP and co-NP classes in the four element case. The original paper that references these claims can be found at http://drops.dagstuhl.de/opus/volltexte/20....Paper.2367.pdf.To run the verification first ensure that you...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 20.48 KB | Download (45): The complexity of positive first-order logic without equality: The four-element case Download |
%PURPOSE: check if the positive and negative runs in the vector x is random or not.%-----------------------------%USAGE: z=runtest(x)%where: z is the z stat for a run% x=a vector variable (nobs x 1)%-----------------------------%%The function could be used on any data with a binomial...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (42): The Runs Test Download |
ARMAX-GARCH Toolbox (Estimation, Forecasting, Simulation and Value-at-Risk Applications)The ARMAX-GARCH Toolbox estimates, forecasts and simulates a large variety of ARMA and GARCH models with different distributions and for any order of AR(n), MA(m), ARCH (p) and GARCH (q) effects as well as it...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 235.52 KB | Download (50): ARMAX-GARCH Toolbox (Estimation, Forecasting, Simulation and Value-at-Risk Applications) Download |
Intro: This function generates random samples for k Xi's where Xi>=0 and the sum Xi is fixed at g. We assume that X's are independent and follow an identical distribution with a CDF function myCDF(x) and an inverse CDF function myICDF(p). I needed a function that works for Xi>=0. So here it is....
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (50): Generate fixed sum positive random numbers with a distribution Download |
There is not "built-ib" Simulink block that is HDL Coder compatible negative or positive edge detectors. Attached are 2 subsystems based on basic logic elements, giving you the Simulink HDL Coder compatible edge detection.
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (43): HDL Coder Compatible edge detector Download |
In statistics, sequential analysis or sequential hypothesis testing is statistical analysis where the sample size is not fixed in advance. Instead data is evaluated as it is collected, and further sampling is stopped in accordance with a pre-defined stopping rule as soon as significant results...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (44): Sequential analysis Download |
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 220 are 1, 2, 4, 5, 10, 11, 20, 22, 44, 55 and 110,...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (42): Amicable Number Download |
Let d < N be a positive integer and define p = N/d. Let y_{1} be a point on the unit circle. Let R be clockwise rotation by the angle t = 2*pi/p. The generalized regular polygon {p} is given by the points y_{i+1} = R * y_{i}, and edges between points i and i+1.Example:polygon(9, 4, 1);
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (45): Regular Polygons Download |
Revised 23rd Feb. 2006.Improved speed, functionality and documentation2-nd Rev, 3rd Apr.2007, back from TVAR to NUM2STRMAXimum points in a curve, ALL(default) or manually positively/negatively selected, with (default) or without parabolic interpolationneeds CLINEDemo uses SAVFILTHELP MAXALL shows...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (44): MAXALL Download |
PCG Preconditioned Conjugate Gradients Method is a replacement of the standard built-in PCG code. Two new options are implemented: 'flex' and 'null'. The 'flex' option changes the standard PCG algorithm into the flexible one. It allows using sophisticated preconditioning, not limited to the...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (47): pcg.m with 'null' and 'flex' options Download |
Converts normally distributed z-statistic to one- or two-tailed p-valueby integrating the standard normal pdf. If no "tails" value is specified, z2p computes the two-tailed value by default. The output p is the same size as z, which can be a scalar, vector, or matrix. Inputs:z: normally...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (45): z2p Download |
Normalize a set of vector, or builds a set of orthnormal vectors from a single vector
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (38): Gram-Schmidt Orthonormalization Download |
divisor(n) : row vector of all distinct divisors of a positive integer N, including 1 and N.Remark: This function uses the default factor() routine in Matlab and hence is limited to input values up to 2^32. However if factor() routine does get updated for larger integers, this function will still...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (43): divisor(n) Download |
Euler_Phi.zip is a suite of the foll Programmes :1) Euler_Phi (n) returns the no of positive integers less than n which are prime to n.2) a_k_mod_m_LCM_Method (a, m, k) : Imagine computing mod(14^26, 45) or mod(56^3005, 1125).This programme computes a_k_mod_m = mod (a^k, m) when a and m are...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (44): Euler_Phi and Its Applications Download |
Given a positive integer specifying size (N), this code will compute an example latin cube, a 3 dimensional extension of the latin square in which each orthogonal slice through the cube is itself a latin square.Note that the cube created is not an example of a /balanced/ latin cube, rather a...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (42): latin cube Download |
The idea is to give more emphasis in some examples of data as compared toothers by giving more weight. For example, we could give lower weights tothe outliers. The motivation to write this function is to compute percentilesfor Monte Carlo simulations where some simulations are very bad (in terms...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (42): Returns weighted percentiles of a sample Download |
In many experimental settings in the life sciences, aggregated count data needs to be analyzed, for example, the number of mites on leaves of a tree, or the number of parasites found in hosts. This data is often well-described by a negative-binomial distribution. Although Matlab's statistical...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (50): mnbinrnd Download |
Convert a single positive numeric scalar value into a string giving that value as the multiple of an IEC/ISO binary prefix. The binary prefix may be selected to be either the full name or the symbol, the symbol is default.The function automatically uses the lowest suitable binary prefix.
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 1024 KB | Download (45): Numeric To Binary Prefixed String Download |
Matlab doesn't provide the values of n! when n>170, but this code can evaluate the logarithm of of n! with absolute accuracy of 1e-12 or better, and relative accuracy of 1e-15 or better. The following codes employ Stirling's integration formula of Gamma function.
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (48): Log Factorial of Large Positive Numbers Download |
Calculates the min and max of a positive triangular distribution given a standard deviation (sigma) and assuming the mode = 1.This function can handle single value,vector or matrix inputs of sigma. For sigma > 1/sqrt(6), the distribution will be asymmetrical with minimum = 0 and mode = 1.
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (43): Triangular Distribution Parameters - tridist_pars Download |