Docs @ Psychtoolbox Wiki : PsychProbability

Search PTB Function help:
homepsychtoolbox.orgpage updateslogin

Revision [13944]

Last edited on 2010-12-06 12:44:20 by DocBot
Additions:
"http://svn.berlios.de/svnroot/repos/osxptb/beta/Psychtoolbox/Contents.m">beta</a> | view WebSVN <a href=
"http://svn.berlios.de/wsvn/osxptb/trunk/Psychtoolbox/Contents.m?op=log">changelog</a> of trunk branch</span>
Deletions:
"http://svn.berlios.de/svnroot/repos/osxptb/beta/Psychtoolbox/Contents.m">beta</a> | view in <a href=
"http://svn.berlios.de/wsvn/osxptb/beta/Psychtoolbox/Contents.m?view=markup">WebSVN with changelog</a></span>


Revision [11958]

Edited on 2010-09-09 16:19:39 by DocBot
Additions:
"http://svn.berlios.de/wsvn/osxptb/beta/Psychtoolbox/Contents.m?view=markup">WebSVN with changelog</a></span>
Deletions:
"http://svn.berlios.de/viewcvs/osxptb/beta/Psychtoolbox/Contents.m?view=markup">WebSVN with changelog</a></span>


Revision [10042]

Edited on 2010-09-06 13:28:45 by DocBot
Additions:
BalanceTrials - Balance a set of factors given the factor levels. Takes alternative parameters wrt. BalanceFactors.


Revision [9500]

Edited on 2009-02-21 09:58:12 by DocBot
Additions:
[[Randi]] - Get random integer sample. Same as [[Ranint]], but Denis prefers it.
[[Ranint]] - Get random integer sample. Same as [[Randi]], but David prefers it.
[[Sample]] - Get a random sample from a list.
[[Shuffle]] - Randomly reorder the entries of vector/matrix.
Deletions:
Randi - Get random integer sample. Same as Ranint, but Denis prefers it.
Ranint - Get random integer sample. Same as Randi, but David prefers it.
Sample - Get a random sample from a list.
Shuffle - Randomly reorder the entries of vector/matrix.


Revision [9489]

Edited on 2009-02-21 09:39:53 by DocBot
Additions:
CombVec - Generate all possible combinations of input vectors.
NRandPerm - Randomly select elements from a random permutation.
RandDim - Randomize matrix along any dimension.
RandLim - Generates a matrix of random numbers between a lower and upper limit.
RandSel - Randomly select elements from matrix, elements are replenished.
UniqueAndN - Returns unique elements of array and the number of times each element occurs in the array.
UniqueNoSorting - Returns elements of array in order of appearance or disappearance.
URandSel - Randomly select elements from matrix, elements are not replenished.
Combining CombVec and RandDim
Using CombVec and RandDim, it is very simple to generate all trials
trial = CombVec(cond_a,cond_b);
trial = RandDim(trial,2); % shuffle trial order
Deletions:
combvec - Generate all possible combinations of input vectors.
nrandperm - Randomly select elements from a random permutation.
randdim - Randomize matrix along any dimension.
randlim - Generates a matrix of random numbers between a lower and upper limit.
randsel - Randomly select elements from matrix, elements are replenished.
uniqueandn - Returns unique elements of array and the number of times each element occurs in the array.
uniquenosorting - Returns elements of array in order of appearance or disappearance.
urandsel - Randomly select elements from matrix, elements are not replenished.
Combining COMBVEC and RANDDIM
Using COMBVEC and RANDDIM, it is very simple to generate all trials
trial = combvec(cond_a,cond_b);
trial = randdim(trial,2); % shuffle trial order


Revision [9386]

Edited on 2009-01-13 17:23:49 by DocBot
Additions:
BalanceFactors - Balance a set of factors given the factor levels.
BuildMarkovK - Build covariance matrix for Markov process.
ChiSqrCumulative - Chi-squared distribution probability function.
ChiSquarePDF - Chi-squared distribution PDF.
ChooseKFromN - Randomly choose k distinct integers out of n.
ClockRandSeed - Seed rand() and randn() from clock.
CoinFlip - Bernoulli random variable.
CoinFlipPDF - Bernoulli distribution PDF.
ColMean - Take column means, works for one row matrices.
ColStd - Take column stds, works for one row matrices.
combvec - Generate all possible combinations of input vectors.
CovToCorr - Compute matrix of correlations from covariance.
FindNeighborCorr - Find nearest neighbor correlations in data set.
MultiNormalDraw - Draw vectors from multivariate normal.
MultiNormalPDF - Compute multivariate normal PDF.
NormalCumulative - Univariate normal CDF
NormalDraw - Draw from univariate normal.
NormalPDF - Univariate normal PDF.
NormalProb - Compute probability of univariate normal in interval.
nrandperm - Randomly select elements from a random permutation.
randdim - Randomize matrix along any dimension.
Randi - Get random integer sample. Same as Ranint, but Denis prefers it.
randlim - Generates a matrix of random numbers between a lower and upper limit.
RandSample - Get a random sample from a list.
randsel - Randomly select elements from matrix, elements are replenished.
Ranint - Get random integer sample. Same as Randi, but David prefers it.
Sample - Get a random sample from a list.
Shuffle - Randomly reorder the entries of vector/matrix.
uniqueandn - Returns unique elements of array and the number of times each element occurs in the array.
uniquenosorting - Returns elements of array in order of appearance or disappearance.
urandsel - Randomly select elements from matrix, elements are not replenished.
Combining COMBVEC and RANDDIM
Using COMBVEC and RANDDIM, it is very simple to generate all trials
in an experiment with a factorial design and then randomize these
trials:
cond_a = [1 2]; cond_b = [120 180]; ntrial = 2;
trial = combvec(cond_a,cond_b);
trial =
1 2 1 2
120 120 180 180
trial = repmat(trial,1,ntrial); % each combination of conditions occurs ntrial times
trial(end+1,:) = [1:size(trial,2)]; % append trial number
trial = randdim(trial,2); % shuffle trial order
trial =
2 1 1 2 1 1 2 2
120 180 180 180 120 120 120 180
6 3 7 8 5 1 2 4
Deletions:
BalanceFactors - Balance a set of factors given the factor levels.
BuildMarkovK - Build covariance matrix for Markov process.
ChiSqrCumulative - Chi-squared distribution probability function.
ChiSquarePDF - Chi-squared distribution PDF.
ChooseKFromN - Randomly choose k distinct integers out of n.
ClockRandSeed - Seed rand() and randn() from clock.
CoinFlip - Bernoulli random variable.
CoinFlipPDF - Bernoulli distribution PDF.
ColMean - Take column means, works for one row matrices.
ColStd - Take column stds, works for one row matrices.
CovToCorr - Compute matrix of correlations from covariance.
FindNeighborCorr - Find nearest neighbor correlations in data set.
MultiNormalDraw - Draw vectors from multivariate normal.
MultiNormalPDF - Compute multivariate normal PDF.
NormalCumulative - Univariate normal CDF
NormalDraw - Draw from univariate normal.
NormalPDF - Univariate normal PDF.
NormalProb - Compute probability of univariate normal in interval.
Randi - Get random integer sample. Same as Ranint, but Denis prefers it.
RandSample - Get a random sample from a list.
Ranint - Get random integer sample. Same as Randi, but David prefers it.
Sample - Get a random sample from a list.
Shuffle - Randomly reorder the entries of vector/matrix.


Revision [7946]

Edited on 2008-09-25 18:26:49 by DocBot
Additions:
""
<div class="code_header" style="text-align:right;">
<span style="float:left;">Path  </span> <span class="counter">Retrieve current version of Contents.m from berliOS: <a href=
"http://svn.berlios.de/svnroot/repos/osxptb/beta/Psychtoolbox/Contents.m">beta</a> | view in <a href=
"http://svn.berlios.de/viewcvs/osxptb/beta/Psychtoolbox/Contents.m?view=markup">WebSVN with changelog</a></span>
</div>
<div class="code">
<code>Psychtoolbox/Contents.m</code>
</div>
""
Deletions:
%%(php;Path)Psychtoolbox/Contents.m%%


Revision [3455]

Edited on 2008-03-21 11:18:07 by DocBot
Additions:
===[[PsychProbability]]===
==[[Psychtoolbox]]==
Psychtoolbox:PsychProbability.
Computation/Evaluation of probability distributions, basic sampling and
randomization.
BalanceFactors - Balance a set of factors given the factor levels.
BuildMarkovK - Build covariance matrix for Markov process.
ChiSqrCumulative - Chi-squared distribution probability function.
ChiSquarePDF - Chi-squared distribution PDF.
ChooseKFromN - Randomly choose k distinct integers out of n.
ClockRandSeed - Seed rand() and randn() from clock.
CoinFlip - Bernoulli random variable.
CoinFlipPDF - Bernoulli distribution PDF.
ColMean - Take column means, works for one row matrices.
ColStd - Take column stds, works for one row matrices.
CovToCorr - Compute matrix of correlations from covariance.
FindNeighborCorr - Find nearest neighbor correlations in data set.
MultiNormalDraw - Draw vectors from multivariate normal.
MultiNormalPDF - Compute multivariate normal PDF.
NormalCumulative - Univariate normal CDF
NormalDraw - Draw from univariate normal.
NormalPDF - Univariate normal PDF.
NormalProb - Compute probability of univariate normal in interval.
Randi - Get random integer sample. Same as Ranint, but Denis prefers it.
RandSample - Get a random sample from a list.
Ranint - Get random integer sample. Same as Randi, but David prefers it.
Sample - Get a random sample from a list.
Shuffle - Randomly reorder the entries of vector/matrix.
BalanceFactors.m was contributed by David E. Fencsik (fencsik@gmail.com), thanks!
%%(php;Path)Psychtoolbox/Contents.m%%
Deletions:
===PsychProbability===
Psychtoolbox:PsychProbability.

Computation/Evaluation of probability distributions, basic sampling and
randomization.

help Psychtoolbox % For an overview, triple-click me & hit enter.

BalanceFactors - Balance a set of factors given the factor levels.
BuildMarkovK - Build covariance matrix for Markov process.
ChiSqrCumulative - Chi-squared distribution probability function.
ChiSquarePDF - Chi-squared distribution PDF.
ChooseKFromN - Randomly choose k distinct integers out of n.
ClockRandSeed - Seed rand() and randn() from clock.
CoinFlip - Bernoulli random variable.
CoinFlipPDF - Bernoulli distribution PDF.
ColMean - Take column means, works for one row matrices.
ColStd - Take column stds, works for one row matrices.
CovToCorr - Compute matrix of correlations from covariance.
FindNeighborCorr - Find nearest neighbor correlations in data set.
MultiNormalDraw - Draw vectors from multivariate normal.
MultiNormalPDF - Compute multivariate normal PDF.
NormalCumulative - Univariate normal CDF
NormalDraw - Draw from univariate normal.
NormalPDF - Univariate normal PDF.
NormalProb - Compute probability of univariate normal in interval.
Randi - Get random integer sample. Same as Ranint, but Denis prefers it.
RandSample - Get a random sample from a list.
Ranint - Get random integer sample. Same as Randi, but David prefers it.
Sample - Get a random sample from a list.
Shuffle - Randomly reorder the entries of vector/matrix.


BalanceFactors.m was contributed by David E. Fencsik (fencsik@gmail.com), thanks!

PtbReference


Revision [626]

The oldest known version of this page was created on 2008-03-15 10:29:21 by DocBot
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.0233 seconds