image thumbnail

updated 10 months ago

Particle Computation: Permute an array of particles with 4 global moves by Aaron Becker

Given 2 rectangular permutations of n^2 particles, arranges obstacles to permute in 4 moves (particle computationp..., particle computation, permutation)

permuteArrayWithHistory.m

image thumbnail

updated 10 months ago

ALLCOMB by Jos (10584)

All combinations of input (v4.0, feb 2014) (matrices, all, combination)

allcomb(varargin)

image thumbnail

updated 12 months ago

nthperm by Peter Li

Directly compute Nth lexicographic permutation (permutation, mex, c)

nthperm(v, n)

image thumbnail

updated 12 months ago

Fast batch generation of permutations by Peter Li

Get next block of lexicographic permutations of input vector (permutation, combinatorics, mex)

nextperms.m

nextperms_example_script.m

image thumbnail

updated 1 year ago

randanova2 by David Stern

Perform permutation test to estimate P-value for two-way ANOVA (anova, statistics, permutation)

randanova2(m,groups,num,interaction)

image thumbnail

updated 1 year ago

Watson's U2 statistic based permutation test for circular data by Pierre M├ęgevand

Performs a permutation test based on Watson's U2 statistic for 2-sample testing of circular data. (statistics, circular, watson)

U2=watsons_U2(A1,A2)

[p,U2_obs,U2_H0]=watsons_U2_perm_test(A1,A2,N)

image thumbnail

updated 1 year ago

COMBNSUB by Jos (10584)

Subset of all possible combinations of a fixed number of elements of a vector (v1.1, june 2013) (combination, subset, selection)

combnsub(V,N, IX)

image thumbnail

updated 1 year ago

Stacked Matrix Permutation by Emanuele Ruffaldi

Simplify the reordering of the sub-dimensions in a stacked matrices (matrix, stacked, permutation)

stackedpermute(X,sizes,order)

image thumbnail

updated 1 year ago

Graphical Calculator by shehbaz Ali

addition,subtraction,plot,stem, permutation,combination. (addition, graphical, calculator)

calculator(varargin)

y=C(n,r);

y=P(n,r);

image thumbnail

updated 1 year ago

LVPermute by Ahmed A. Selman

A simple (Line Vector Permutation) function. (permutation, mathematics, physics)

[C,D,j]=lvpermute(varargin)

image thumbnail

updated 1 year ago

COMBN (4.3) by Jos (10584)

All combinations of N elements taken from the vector V. (matrices, combination, permutation)

combn(V,N)

image thumbnail

updated 2 years ago

NEXTPERMPOS by Jos (10584)

the next combination of values in specific positions (extension of PERMPOS) (permutation, combination, large)

nextpermpos(C)

image thumbnail

updated 2 years ago

one sample/paired samples permutation t-test with correction for multiple comparisons by David Groppe

One sample/paired samples permutation t-test with correction for multiple comparisons (ttest, repeated measures, paired sample)

[pval, t_orig, crit_t, est_alpha, seed_state]=mult_comp_p...

image thumbnail

updated 2 years ago

ALL PERMUTATIONS OF SEQUENCE by Sandeep Solanki

Generates All Permutations of a sequence (math, function, permutation)

allperm(n)

image thumbnail

updated 2 years ago

Algorithmic pseudo-random permutations for large sequences by JD

permdata = createRandomPermutation(numobjects, nrounds) create a pseudo-random permutation (permutation, permutations, cryptography)

createRandomPermutation(numobjects, nrounds)

image thumbnail

updated almost 3 years ago

Random Weighted Selection by Adam Gripton

Randomly pick n from m>=n elements, biased with given linear weights without replacement. (random, weighted, selection)

Y=randweightedpick(h,n)

image thumbnail

updated almost 3 years ago

KTHCOMBN by Jos (10584)

K-th combination(s) of elements (combinations, permutations, selection)

kthcombn (V,N,K)

image thumbnail

updated 3 years ago

Option Specifications and Permutations by Eric Cousineau

A simple way to use structured option structures in functions and produce permutations. (option, management, permutation)

exampleOverlay(optsIn)

optOverlay(opts, optsIn, recurseStructs)

optPermute(optVars)

image thumbnail

updated 3 years ago

Generate Exhaustive Permutations by Michael Chan

Illustrates generation of exhaustive permutation of symbols given the symbolic bases. (bioinformatics, permutation, combinatorics)

computePermutationSeqForSpecificIndex (bases, lengthOfPer...

convertIndexRepresentedPermutationsToSymbolPermutations (...

generateExhaustivePermutation(bases, lengthOfPermutation)

image thumbnail

updated 3 years ago

QAP Rand Matrix Swap by Puck Rombach

Randomly permutes an adjacency matrix, preserving the network it represents, as needed for QAP test. (random, permutation, adjacency matrix)

qapmatrixswap(Y)

image thumbnail

updated almost 4 years ago

Shuffle by Jan Simon

Random permutation of array elements, C-Mex: much faster than RANDPERM (statistics, vector, mix)

Shuffle(Arg1, Arg2, Arg3)

uTest_Shuffle(doSpeed, doBias)

image thumbnail

updated almost 4 years ago

RANDPERMFULL (derangement) by Jos (10584)

RANDPERMFULL (N) returns a random derangement (complete permutation) of the integers from 1 to N (permutation, derangement, random)

randpermfull(N)

image thumbnail

updated 4 years ago

All Permutations of integers with sum criteria by Bruno Luong

All Pernutations of integers with sum criteria (permutation l1 polyno..., permutation, l1)

allVL1(n, L1, L1ops, MaxNbSol)

image thumbnail

updated 4 years ago

nextperm by Steven Gregory

Outputs the next permutation of the ordered tuple x. (permutation, permutation iterator, mathematics)

nextperm(x,n)

image thumbnail

updated 4 years ago

RANDSUBSET by Bruno Luong

Return a random subset of k elements of the set of n elements (randperm, subset, random)

randsubset(v, k)

randsubset_install

randsubset_matlab(v, k)

image thumbnail

updated 4 years ago

Unique random permutations by Ged Ridgway

Random sample (without replacement) from unique permutations of a vector or row-perms of a matrix (combinatorics, permutation, random)

nchoosek_m(n, k, m)

perms_m(n, m)

sample_no_repl(n, k)

image thumbnail

updated 4 years ago

parameter combination by Zeshan Yao

it permutes all the element-wise combination of N parameter arrays (permutation, parameter, combination)

permutor(para)

image thumbnail

updated almost 5 years ago

NCHOOSE (v2.1 mar 2010) by Jos (10584)

return all combinations of the elements of a set (matrices, matrix, nchoosek)

nchoose(S)

image thumbnail

updated almost 5 years ago

RNDTTEST by Giuseppe Cardillo

An alternative to Student t-test assessing difference in means. (statistics, probability, permutation)

pv=rndttest(varargin)

image thumbnail

updated 5 years ago

Generate random permutation order without using sort() by Ragaar Ashnod

by Ragaar 13 Oct 2009 (mathematics, random number generat..., statistics)

randp(m)

image thumbnail

updated 5 years ago

NextVector toolbox by Ben Petschel

files for iterating over permutations, combinations, subsets and vectorized for/while loops (next, next vector, perms)

vout=nextchoose(v,w)

vout=nextfor(v,lo,hi,dx)

vout=nextperm(v)

image thumbnail

updated 5 years ago

Subfactorial by Yash

Calculate subfactorial of integers up to 170. (subfactorial, mathematics, integer math)

subfactorial(n)

image thumbnail

updated 5 years ago

Set partition by Bruno Luong

List all partitions a set n elements (combination, bell, stirling)

Bell(n)

DispPartObj(list, Obj, options)

ReplacePartObj(list, Obj)

image thumbnail

updated 5 years ago

FACTORADIC by Darren Rowland

Obtain the factorial radix representation of a number. (factoradic, factorial radix, lehmer code)

factoradic(m,n)

image thumbnail

updated almost 6 years ago

combinations by Gautam Vallabha

Returns combinations of a set of numeric or cell vectors (uses a memory-efficient algorithm) (permute, permutation, permutations)

combinations(varargin)

image thumbnail

updated almost 6 years ago

CIRCULANT (v2.0, feb 2009) by Jos (10584)

(yet another, but fast) Circulent Matrix (matrix, matrix manipulation, matrices)

circulant(A,d)

image thumbnail

updated 6 years ago

BinomialProbability by Michael Robbins

Probability of surviving k of n trials where the outcome is to win or to lose. (probability, chance, combination)

image thumbnail

updated 6 years ago

NCHOOSE2 (v2.1 - jun 2008) by Jos (10584)

all combinations of two elements (matrices, nchoosek, combinations)

nchoose2(X)

image thumbnail

updated almost 8 years ago

FACTORIALM by Jos (10584)

Factorial function for matrices (factorial, combination, permutation)

factorialm (M)

image thumbnail

updated 8 years ago

Picking elements from a set by Stefan Stoll

Gives all possibilities of picking k elements from a set of N with/without order/repetition. (matrices, permutation, combination)

image thumbnail

updated 10 years ago

PARTPERM -- Partial random permutation of a vector by David Fass

Partial random permutation of a vector. (statistics, probability, permute)

image thumbnail

updated 10 years ago

CARTPROD: Cartesian product of multiple sets by David Fass

Returns a matrix containing the cartesian product of multiple input sets. (sets, cartesian, product)

image thumbnail

updated 10 years ago

MYRANDPERM -- A simple variation on RANDPERM by David Fass

Randomly permutes elements of input matrix. (statistics, probability, random)

image thumbnail

updated 11 years ago

pickn by Richard Medlock

Return P random picks of N items from an input vector A. (statistics, probability, pick)

Contact us