Chapter26: Statistics
625
Withtheoptionalargumentalt,thealternativeofinterestcanbeselected. Ifaltis
"!="or"<>",thenullhypothesisistestedagainst thetwo-sidedalternativePROB
(x < < y) != 1/2. . If f alt t is s ">",the one-sidedalternative PROB (x x > > y) > 1/2 ("x
is stochastically greater than y") ) is s considered. . Similarly y for r "<", , the e one-sided
alternativePROB(x>y)<1/2("xisstochasticallylessthany")isconsidered. The
defaultisthetwo-sidedcase.
Thep-valueofthetestisreturnedinpval.
Ifnooutputargumentisgiven,thep-valueofthetestisdisplayed.
[FunctionFile]
[pval, t, df] = t_test
(
x
,
m
,
alt
)
Forasamplexfromanormaldistributionwithunknownmeanandvariance,perform
at-testofthenullhypothesismean(x)==m.
Underthenull,theteststatistict follows aStudentdistributionwith h df=length
(x)-1degreesoffreedom.
Withtheoptionalargumentstringalt,thealternativeofinterestcanbeselected. If
altis"!="or"<>",thenullistestedagainstthetwo-sidedalternativemean(x)!=m.
Ifaltis">",theone-sidedalternativemean(x)>misconsidered. Similarlyfor"<",
the one-sidedalternative mean(x)<m is considered. . The e default is the two-sided
case.
Thep-valueofthetestisreturnedinpval.
Ifnooutputargumentisgiven,thep-valueofthetestisdisplayed.
[FunctionFile]
[pval, t, df] = t_test_2
(
x
,
y
,
alt
)
Fortwosamplesxandyfromnormaldistributionswithunknownmeansandunknown
equalvariances,performatwo-samplet-testofthenullhypothesisofequalmeans.
Underthenull,theteststatistictfollowsaStudentdistributionwithdf degreesof
freedom.
With the optionalargument t string alt, , thealternative of interest t can n be selected.
Ifalt is"!="or"<>",thenullistestedagainst thetwo-sidedalternative mean(x)
!=mean(y). If f alt is ">", the one-sidedalternative mean(x)>mean(y)is used.
Similarlyfor"<",theone-sidedalternativemean(x)<mean(y)isused. Thedefault
isthetwo-sidedcase.
Thep-valueofthetestisreturnedinpval.
Ifnooutputargumentisgiven,thep-valueofthetestisdisplayed.
[FunctionFile]
[pval, t, df] = t_test_regression
(
y
,
x
,
rr
,
r
,
alt
)
Perform at t testfor the nullhypothesis rr*b=rina classicalnormalregression
modely=x*b+e.
Underthenull,theteststatistictfollowsatdistributionwithdf degreesoffreedom.
Ifr isomitted,avalueof0isassumed.
With the optionalargument t string alt, , thealternative of interest t can n be selected.
Ifaltis "!="or"<>",thenullis testedagainstthetwo-sidedalternative rr*b!=
r. Ifaltis s ">",theone-sidedalternative rr*b>r isused. . Similarly y for "<",the
one-sidedalternativerr*b<risused. Thedefaultisthetwo-sidedcase.
Thep-valueofthetestisreturnedinpval.
Ifnooutputargumentisgiven,thep-valueofthetestisdisplayed.
How to split pdf file by pages - Split, seperate PDF into multiple files in C#.net, ASP.NET, MVC, Ajax, WinForms, WPF
Explain How to Split PDF Document in Visual C#.NET Application
cannot select text in pdf file; c# split pdf
How to split pdf file by pages - VB.NET PDF File Split Library: Split, seperate PDF into multiple files in vb.net, ASP.NET, MVC, Ajax, WinForms, WPF
VB.NET PDF Document Splitter Control to Disassemble PDF Document
break a pdf password; split pdf
626
GNUOctave
[FunctionFile]
[pval, z] = = u_test
(
x
,
y
,
alt
)
For two samples x x andy, performa a Mann-Whitney U-test of the null hypothesis
PROB(x>y)==1/2==PROB(x <y).
Underthenull,theteststatisticzapproximatelyfollowsastandardnormaldistribu-
tion. NotethatthistestisequivalenttotheWilcoxonrank-sumtest.
Withtheoptionalargumentstringalt,thealternativeofinterestcanbeselected. If
altis "!=" or"<>",thenullistestedagainstthetwo-sidedalternativePROB(x >
y)!=1/2.Ifaltis">",theone-sidedalternativePROB(x>y)>1/2isconsidered.
Similarlyfor"<",theone-sidedalternativePROB(x >y)<1/2isconsidered. . The
defaultisthetwo-sidedcase.
Thep-valueofthetestisreturnedinpval.
Ifnooutputargumentisgiven,thep-valueofthetestisdisplayed.
[FunctionFile]
[pval, f, df_num, df_den] = = var_test
(
x
,
y
,
alt
)
Fortwosamplesxandyfromnormaldistributionswithunknownmeansandunknown
variances,performanF-testofthenullhypothesisofequalvariances.
Underthenull,theteststatisticf followsanF-distributionwithdf
numanddf
den
degreesoffreedom.
Withtheoptionalargumentstringalt,thealternativeofinterestcanbeselected. If
altis"!="or"<>",thenullistestedagainstthetwo-sidedalternativevar(x)!=var
(y). Ifaltis">",theone-sidedalternativevar(x)>var(y)isused. Similarlyfor
"<",theone-sidedalternativevar(x)>var(y)isused.Thedefaultisthetwo-sided
case.
Thep-valueofthetestisreturnedinpval.
Ifnooutputargumentisgiven,thep-valueofthetestisdisplayed.
[FunctionFile]
[pval, t, df] = welch_test
(
x
,
y
,
alt
)
Fortwosamplesxandyfromnormaldistributionswithunknownmeansandunknown
andnot necessarily equalvariances,performaWelchtest ofthe nullhypothesis of
equalmeans.
Underthenull,theteststatistictapproximatelyfollowsaStudentdistributionwith
df degreesoffreedom.
Withtheoptionalargumentstringalt,thealternativeofinterestcanbeselected. If
altis"!="or"<>",thenullistestedagainstthetwo-sidedalternativemean(x)!=m.
Ifaltis">",theone-sidedalternativemean(x)>misconsidered. Similarlyfor"<",
the one-sidedalternative mean(x) < mis considered. . Thedefault t is the two-sided
case.
Thep-valueofthetestisreturnedinpval.
Ifnooutputargumentisgiven,thep-valueofthetestisdisplayed.
[FunctionFile]
[pval, z] = = wilcoxon_test
(
x
,
y
,
alt
)
Fortwomatched-pairsamplevectorsx andy,performaWilcoxonsigned-ranktest
ofthenullhypothesisPROB(x>y)==1/2.
Underthenull,theteststatisticzapproximatelyfollowsastandardnormaldistribu-
tionwhenn>25.
C# PDF File & Page Process Library SDK for C#.net, ASP.NET, MVC
C# File: Merge PDF; C# File: Split PDF; C# Page: Insert PDF pages; C# Page: Delete PDF pages; C# Read: PDF Text Extract; C# Read: PDF
split pdf files; break pdf into pages
C# PDF Page Insert Library: insert pages into PDF file in C#.net
a new PDF page into existing PDF document file, RasterEdge C# page using C# .NET, how to reorganize PDF document pages and how to split PDF document in
split pdf into individual pages; pdf split pages
Chapter26: Statistics
627
Caution: Thisfunctionassumesanormaldistributionforzandthusisinvalidforn
25.
Withtheoptionalargumentstringalt,thealternativeofinterestcanbeselected. If
altis "!=" or"<>",thenullistestedagainstthetwo-sidedalternativePROB(x >
y)!=1/2.Ifaltis">",theone-sidedalternativePROB(x>y)>1/2isconsidered.
Similarlyfor"<",theone-sidedalternativePROB(x >y)<1/2isconsidered. . The
defaultisthetwo-sidedcase.
Thep-valueofthetestisreturnedinpval.
Ifnooutputargumentisgiven,thep-valueofthetestisdisplayed.
[FunctionFile]
[pval, z] = = z_test
(
x
,
m
,
v
,
alt
)
PerformaZ-testofthenullhypothesismean(x)==mforasamplex fromanormal
distributionwithunknownmeanandknownvariancev.
Underthenull,theteststatisticzfollowsastandardnormaldistribution.
Withtheoptionalargumentstringalt,thealternativeofinterestcanbeselected. If
altis"!="or"<>",thenullistestedagainstthetwo-sidedalternativemean(x)!=m.
Ifaltis">",theone-sidedalternativemean(x)>misconsidered. Similarlyfor"<",
the one-sidedalternative mean(x)<m is considered. . The e default is the two-sided
case.
Thep-valueofthetestisreturnedinpval.
Ifnooutputargumentisgiven,thep-valueofthetestisdisplayedalongwithsome
information.
[FunctionFile]
[pval, z] = = z_test_2
(
x
,
y
,
v_x
,
v_y
,
alt
)
Fortwosamplesx andyfromnormaldistributionswithunknownmeansandknown
variancesv
x andv
y,performaZ-testofthehypothesisofequalmeans.
Underthenull,theteststatisticzfollowsastandardnormaldistribution.
With the optionalargument t string alt, , thealternative of interest t can n be selected.
Ifalt is"!="or"<>",thenullistestedagainst thetwo-sidedalternative mean(x)
!=mean(y). If f alt is ">", theone-sided alternative mean(x)>mean(y) is used.
Similarlyfor"<",theone-sidedalternativemean(x)<mean(y)isused. Thedefault
isthetwo-sidedcase.
Thep-valueofthetestisreturnedinpval.
Ifnooutputargumentisgiven,thep-valueofthetestisdisplayedalongwithsome
information.
26.7 RandomNumberGeneration
Octavecangeneraterandomnumbersfromalargenumber ofdistributions. . Therandom
number generators arebasedontherandomnumber generators describedinSection16.3
[SpecialUtilityMatrices],page418.
Thefollowingtablesummarizestheavailablerandomnumbergenerators(inalphabetical
order).
VB.NET PDF Page Insert Library: insert pages into PDF file in vb.
Moreover, you may use the following VB.NET demo code to insert multiple pages of a PDF file to a PDFDocument object at user-defined position.
break up pdf into individual pages; break a pdf
VB.NET PDF Page Delete Library: remove PDF pages in vb.net, ASP.
Ability to remove consecutive pages from PDF file in VB.NET. Enable specified pages deleting from PDF in Visual Basic .NET class.
pdf format specification; acrobat separate pdf pages
628
GNUOctave
Distribution
Function
BetaDistribution
betarnd
BinomialDistribution
binornd
CauchyDistribution
cauchy
rnd
Chi-SquareDistribution
chi2rnd
UnivariateDiscreteDistribution
discrete
rnd
EmpiricalDistribution
empirical
rnd
ExponentialDistribution
exprnd
FDistribution
frnd
GammaDistribution
gamrnd
GeometricDistribution
geornd
HypergeometricDistribution
hygernd
LaplaceDistribution
laplace
rnd
LogisticDistribution
logistic
rnd
Log-NormalDistribution
lognrnd
PascalDistribution
nbinrnd
UnivariateNormalDistribution
normrnd
PoissonDistribution
poissrnd
StandardNormalDistribution
stdnormal
rnd
t(Student)Distribution
trnd
UnivariateDiscreteDistribution
unidrnd
UniformDistribution
unifrnd
WeibullDistribution
wblrnd
WienerProcess
wienrnd
[FunctionFile]
betarnd
(
a
,
b
)
[FunctionFile]
betarnd
(
a
,
b
,
r
)
[FunctionFile]
betarnd
(
a
,
b
,
r
,
c
,...)
[FunctionFile]
betarnd
(
a
,
b
,
[sz]
)
Returna matrix of random samples fromthe Beta distributionwithparameters s a
andb.
Whencalledwithasinglesizeargument,returnasquarematrixwiththedimension
specified.Whencalledwithmorethanonescalarargumentthefirsttwoargumentsare
takenasthenumberofrowsandcolumnsandanyfurtherargumentsspecifyadditional
matrixdimensions. Thesizemayalsobespecifiedwithavectorofdimensionssz.
Ifnosizeargumentsaregiventhentheresultmatrixisthecommonsizeofaandb.
[FunctionFile]
binornd
(
n
,
p
)
[FunctionFile]
binornd
(
n
,
p
,
r
)
[FunctionFile]
binornd
(
n
,
p
,
r
,
c
,...)
[FunctionFile]
binornd
(
n
,
p
,
[sz]
)
Returnamatrixofrandomsamplesfromthebinomialdistributionwithparameters
nandp,wherenisthenumberoftrialsandpistheprobabilityofsuccess.
Whencalledwithasinglesizeargument,returnasquarematrixwiththedimension
specified.Whencalledwithmorethanonescalarargumentthefirsttwoargumentsare
takenasthenumberofrowsandcolumnsandanyfurtherargumentsspecifyadditional
matrixdimensions. Thesizemayalsobespecifiedwithavectorofdimensionssz.
C# PDF Page Delete Library: remove PDF pages in C#.net, ASP.NET
Ability to remove a range of pages from PDF file. Description: Delete consecutive pages from the input PDF file starting at specified position. Parameters:
acrobat split pdf; pdf file specification
VB.NET PDF File Compress Library: Compress reduce PDF size in vb.
Also able to uncompress PDF file in VB.NET programs. Offer flexible and royalty-free developing library license for VB.NET programmers to compress PDF file.
split pdf by bookmark; c# print pdf to specific printer
Chapter26: Statistics
629
Ifnosizeargumentsaregiventhentheresultmatrixisthecommonsizeofnandp.
[FunctionFile]
cauchy_rnd
(
location
,
scale
)
[FunctionFile]
cauchy_rnd
(
location
,
scale
,
r
)
[FunctionFile]
cauchy_rnd
(
location
,
scale
,
r
,
c
,...)
[FunctionFile]
cauchy_rnd
(
location
,
scale
,
[sz]
)
Returnamatrixofrandomsamples fromtheCauchydistributionwithparameters
locationandscale.
Whencalledwithasinglesizeargument,returnasquarematrixwiththedimension
specified.Whencalledwithmorethanonescalarargumentthefirsttwoargumentsare
takenasthenumberofrowsandcolumnsandanyfurtherargumentsspecifyadditional
matrixdimensions. Thesizemayalsobespecifiedwithavectorofdimensionssz.
Ifnosizeargumentsaregiventhentheresultmatrixisthecommonsizeoflocation
andscale.
[FunctionFile]
chi2rnd
(
n
)
[FunctionFile]
chi2rnd
(
n
,
r
)
[FunctionFile]
chi2rnd
(
n
,
r
,
c
,...)
[FunctionFile]
chi2rnd
(
n
,
[sz]
)
Returnamatrixofrandomsamplesfromthechi-squaredistributionwithndegrees
offreedom.
Whencalledwithasinglesizeargument,returnasquarematrixwiththedimension
specified.Whencalledwithmorethanonescalarargumentthefirsttwoargumentsare
takenasthenumberofrowsandcolumnsandanyfurtherargumentsspecifyadditional
matrixdimensions. Thesizemayalsobespecifiedwithavectorofdimensionssz.
Ifnosizeargumentsaregiventhentheresultmatrixisthesizeofn.
[FunctionFile]
discrete_rnd
(
v
,
p
)
[FunctionFile]
discrete_rnd
(
v
,
p
,
r
)
[FunctionFile]
discrete_rnd
(
v
,
p
,
r
,
c
,...)
[FunctionFile]
discrete_rnd
(
v
,
p
,
[sz]
)
Returnamatrixofrandomsamplesfromtheunivariatedistributionwhichassumes
thevaluesinv withprobabilitiesp.
Whencalledwithasinglesizeargument,returnasquarematrixwiththedimension
specified.Whencalledwithmorethanonescalarargumentthefirsttwoargumentsare
takenasthenumberofrowsandcolumnsandanyfurtherargumentsspecifyadditional
matrixdimensions. Thesizemayalsobespecifiedwithavectorofdimensionssz.
Ifnosizeargumentsaregiventhentheresultmatrixisthecommonsizeofv andp.
[FunctionFile]
empirical_rnd
(
data
)
[FunctionFile]
empirical_rnd
(
data
,
r
)
[FunctionFile]
empirical_rnd
(
data
,
r
,
c
,...)
[FunctionFile]
empirical_rnd
(
data
,
[sz]
)
Returnamatrix of randomsamples fromtheempiricaldistributionobtainedfrom
theunivariatesampledata.
Whencalledwithasinglesizeargument,returnasquarematrixwiththedimension
specified.Whencalledwithmorethanonescalarargumentthefirsttwoargumentsare
VB.NET PDF File Merge Library: Merge, append PDF files in vb.net
Combine multiple specified PDF pages in into single one file. Able to integrate VB.NET PDF Merging control to both .NET WinForms application and ASP.NET project
break up pdf file; can print pdf no pages selected
C# PDF File Compress Library: Compress reduce PDF size in C#.net
size PDF document of 1000+ pages to smaller one in a short time while without losing high image quality. Easy to compress & decompress PDF document file in .NET
pdf split and merge; combine pages of pdf documents into one
630
GNUOctave
takenasthenumberofrowsandcolumnsandanyfurtherargumentsspecifyadditional
matrixdimensions. Thesizemayalsobespecifiedwithavectorofdimensionssz.
Ifno size arguments are giventhentheresult matrix is a randomorderingofthe
sampledata.
[FunctionFile]
exprnd
(
lambda
)
[FunctionFile]
exprnd
(
lambda
,
r
)
[FunctionFile]
exprnd
(
lambda
,
r
,
c
,...)
[FunctionFile]
exprnd
(
lambda
,
[sz]
)
Return a matrix x of random m samples from the exponential distribution with mean
lambda.
Whencalledwithasinglesizeargument,returnasquarematrixwiththedimension
specified.Whencalledwithmorethanonescalarargumentthefirsttwoargumentsare
takenasthenumberofrowsandcolumnsandanyfurtherargumentsspecifyadditional
matrixdimensions. Thesizemayalsobespecifiedwithavectorofdimensionssz.
Ifnosizeargumentsaregiventhentheresultmatrixisthesizeoflambda.
[FunctionFile]
frnd
(
m
,
n
)
[FunctionFile]
frnd
(
m
,
n
,
r
)
[FunctionFile]
frnd
(
m
,
n
,
r
,
c
,...)
[FunctionFile]
frnd
(
m
,
n
,
[sz]
)
ReturnamatrixofrandomsamplesfromtheFdistributionwithmandndegreesof
freedom.
Whencalledwithasinglesizeargument,returnasquarematrixwiththedimension
specified.Whencalledwithmorethanonescalarargumentthefirsttwoargumentsare
takenasthenumberofrowsandcolumnsandanyfurtherargumentsspecifyadditional
matrixdimensions. Thesizemayalsobespecifiedwithavectorofdimensionssz.
Ifnosizeargumentsaregiventhentheresultmatrixisthecommonsizeofmandn.
[FunctionFile]
gamrnd
(
a
,
b
)
[FunctionFile]
gamrnd
(
a
,
b
,
r
)
[FunctionFile]
gamrnd
(
a
,
b
,
r
,
c
,...)
[FunctionFile]
gamrnd
(
a
,
b
,
[sz]
)
ReturnamatrixofrandomsamplesfromtheGammadistributionwithshapeparam-
eteraandscaleb.
Whencalledwithasinglesizeargument,returnasquarematrixwiththedimension
specified.Whencalledwithmorethanonescalarargumentthefirsttwoargumentsare
takenasthenumberofrowsandcolumnsandanyfurtherargumentsspecifyadditional
matrixdimensions. Thesizemayalsobespecifiedwithavectorofdimensionssz.
Ifnosizeargumentsaregiventhentheresultmatrixisthecommonsizeofaandb.
[FunctionFile]
geornd
(
p
)
[FunctionFile]
geornd
(
p
,
r
)
[FunctionFile]
geornd
(
p
,
r
,
c
,...)
[FunctionFile]
geornd
(
p
,
[sz]
)
Returnamatrixofrandomsamplesfromthegeometricdistributionwithparameter
p.
Chapter26: Statistics
631
Whencalledwithasinglesizeargument,returnasquarematrixwiththedimension
specified.Whencalledwithmorethanonescalarargumentthefirsttwoargumentsare
takenasthenumberofrowsandcolumnsandanyfurtherargumentsspecifyadditional
matrixdimensions. Thesizemayalsobespecifiedwithavectorofdimensionssz.
Ifnosizeargumentsaregiventhentheresultmatrixisthesizeofp.
Thegeometric distributionmodelsthenumberoffailures (x-1)ofaBernoullitrial
withprobabilitypbeforethefirstsuccess(x).
[FunctionFile]
hygernd
(
t
,
m
,
n
)
[FunctionFile]
hygernd
(
t
,
m
,
n
,
r
)
[FunctionFile]
hygernd
(
t
,
m
,
n
,
r
,
c
,...)
[FunctionFile]
hygernd
(
t
,
m
,
n
,
[sz]
)
Returnamatrixofrandomsamples fromthehypergeometricdistributionwithpa-
rameterst,m,andn.
Theparameterst,m,andnmustbepositiveintegerswithmandnnotgreaterthan
t.
Whencalledwithasinglesizeargument,returnasquarematrixwiththedimension
specified.Whencalledwithmorethanonescalarargumentthefirsttwoargumentsare
takenasthenumberofrowsandcolumnsandanyfurtherargumentsspecifyadditional
matrixdimensions. Thesizemayalsobespecifiedwithavectorofdimensionssz.
Ifnosizeargumentsaregiventhentheresultmatrixisthecommonsizeoft,m,and
n.
[FunctionFile]
laplace_rnd
(
r
)
[FunctionFile]
laplace_rnd
(
r
,
c
,...)
[FunctionFile]
laplace_rnd
(
[sz]
)
ReturnamatrixofrandomsamplesfromtheLaplacedistribution.
Whencalledwithasinglesizeargument,returnasquarematrixwiththedimension
specified.Whencalledwithmorethanonescalarargumentthefirsttwoargumentsare
takenasthenumberofrowsandcolumnsandanyfurtherargumentsspecifyadditional
matrixdimensions. Thesizemayalsobespecifiedwithavectorofdimensionssz.
[FunctionFile]
logistic_rnd
(
r
)
[FunctionFile]
logistic_rnd
(
r
,
c
,...)
[FunctionFile]
logistic_rnd
(
[sz]
)
Returnamatrixofrandomsamplesfromthelogisticdistribution.
Whencalledwithasinglesizeargument,returnasquarematrixwiththedimension
specified.Whencalledwithmorethanonescalarargumentthefirsttwoargumentsare
takenasthenumberofrowsandcolumnsandanyfurtherargumentsspecifyadditional
matrixdimensions. Thesizemayalsobespecifiedwithavectorofdimensionssz.
[FunctionFile]
lognrnd
(
mu
,
sigma
)
[FunctionFile]
lognrnd
(
mu
,
sigma
,
r
)
[FunctionFile]
lognrnd
(
mu
,
sigma
,
r
,
c
,...)
[FunctionFile]
lognrnd
(
mu
,
sigma
,
[sz]
)
Returnamatrixofrandomsamplesfromthelognormaldistributionwithparameters
muandsigma.
632
GNUOctave
Whencalledwithasinglesizeargument,returnasquarematrixwiththedimension
specified.Whencalledwithmorethanonescalarargumentthefirsttwoargumentsare
takenasthenumberofrowsandcolumnsandanyfurtherargumentsspecifyadditional
matrixdimensions. Thesizemayalsobespecifiedwithavectorofdimensionssz.
Ifnosizeargumentsaregiventhentheresultmatrixisthecommonsizeof muand
sigma.
[FunctionFile]
nbinrnd
(
n
,
p
)
[FunctionFile]
nbinrnd
(
n
,
p
,
r
)
[FunctionFile]
nbinrnd
(
n
,
p
,
r
,
c
,...)
[FunctionFile]
nbinrnd
(
n
,
p
,
[sz]
)
Return a matrix of randomsamples s from m the negative binomialdistributionwith
parametersnandp.
Whencalledwithasinglesizeargument,returnasquarematrixwiththedimension
specified.Whencalledwithmorethanonescalarargumentthefirsttwoargumentsare
takenasthenumberofrowsandcolumnsandanyfurtherargumentsspecifyadditional
matrixdimensions. Thesizemayalsobespecifiedwithavectorofdimensionssz.
Ifnosizeargumentsaregiventhentheresultmatrixisthecommonsizeofnandp.
[FunctionFile]
normrnd
(
mu
,
sigma
)
[FunctionFile]
normrnd
(
mu
,
sigma
,
r
)
[FunctionFile]
normrnd
(
mu
,
sigma
,
r
,
c
,...)
[FunctionFile]
normrnd
(
mu
,
sigma
,
[sz]
)
Returnamatrix ofrandomsamplesfromthenormal l distributionwithparameters
meanmuandstandarddeviationsigma.
Whencalledwithasinglesizeargument,returnasquarematrixwiththedimension
specified.Whencalledwithmorethanonescalarargumentthefirsttwoargumentsare
takenasthenumberofrowsandcolumnsandanyfurtherargumentsspecifyadditional
matrixdimensions. Thesizemayalsobespecifiedwithavectorofdimensionssz.
Ifnosizeargumentsaregiventhentheresultmatrixisthecommonsizeof muand
sigma.
[FunctionFile]
poissrnd
(
lambda
)
[FunctionFile]
poissrnd
(
lambda
,
r
)
[FunctionFile]
poissrnd
(
lambda
,
r
,
c
,...)
[FunctionFile]
poissrnd
(
lambda
,
[sz]
)
Returna matrixofrandomsamples from the Poisson distributionwithparameter
lambda.
Whencalledwithasinglesizeargument,returnasquarematrixwiththedimension
specified.Whencalledwithmorethanonescalarargumentthefirsttwoargumentsare
takenasthenumberofrowsandcolumnsandanyfurtherargumentsspecifyadditional
matrixdimensions. Thesizemayalsobespecifiedwithavectorofdimensionssz.
Ifnosizeargumentsaregiventhentheresultmatrixisthesizeoflambda.
[FunctionFile]
stdnormal_rnd
(
r
)
[FunctionFile]
stdnormal_rnd
(
r
,
c
,...)
Chapter26: Statistics
633
[FunctionFile]
stdnormal_rnd
(
[sz]
)
Returnamatrixofrandomsamplesfromthestandardnormaldistribution(mean=
0,standarddeviation=1).
Whencalledwithasinglesizeargument,returnasquarematrixwiththedimension
specified.Whencalledwithmorethanonescalarargumentthefirsttwoargumentsare
takenasthenumberofrowsandcolumnsandanyfurtherargumentsspecifyadditional
matrixdimensions. Thesizemayalsobespecifiedwithavectorofdimensionssz.
[FunctionFile]
trnd
(
n
)
[FunctionFile]
trnd
(
n
,
r
)
[FunctionFile]
trnd
(
n
,
r
,
c
,...)
[FunctionFile]
trnd
(
n
,
[sz]
)
Returnamatrixofrandomsamplesfromthet(Student)distributionwithndegrees
offreedom.
Whencalledwithasinglesizeargument,returnasquarematrixwiththedimension
specified.Whencalledwithmorethanonescalarargumentthefirsttwoargumentsare
takenasthenumberofrowsandcolumnsandanyfurtherargumentsspecifyadditional
matrixdimensions. Thesizemayalsobespecifiedwithavectorofdimensionssz.
Ifnosizeargumentsaregiventhentheresultmatrixisthesizeofn.
[FunctionFile]
unidrnd
(
n
)
[FunctionFile]
unidrnd
(
n
,
r
)
[FunctionFile]
unidrnd
(
n
,
r
,
c
,...)
[FunctionFile]
unidrnd
(
n
,
[sz]
)
Return a matrix x of random m samples from the discrete uniform distribution which
assumestheintegervalues1–nwithequalprobability.
nmaybeascalaroramulti-dimensionalarray.
Whencalledwithasinglesizeargument,returnasquarematrixwiththedimension
specified.Whencalledwithmorethanonescalarargumentthefirsttwoargumentsare
takenasthenumberofrowsandcolumnsandanyfurtherargumentsspecifyadditional
matrixdimensions. Thesizemayalsobespecifiedwithavectorofdimensionssz.
Ifnosizeargumentsaregiventhentheresultmatrixisthesizeofn.
[FunctionFile]
unifrnd
(
a
,
b
)
[FunctionFile]
unifrnd
(
a
,
b
,
r
)
[FunctionFile]
unifrnd
(
a
,
b
,
r
,
c
,...)
[FunctionFile]
unifrnd
(
a
,
b
,
[sz]
)
Returnamatrixofrandomsamplesfromtheuniformdistributionon[a,b].
Whencalledwithasinglesizeargument,returnasquarematrixwiththedimension
specified.Whencalledwithmorethanonescalarargumentthefirsttwoargumentsare
takenasthenumberofrowsandcolumnsandanyfurtherargumentsspecifyadditional
matrixdimensions. Thesizemayalsobespecifiedwithavectorofdimensionssz.
Ifnosizeargumentsaregiventhentheresultmatrixisthecommonsizeofaandb.
[FunctionFile]
wblrnd
(
scale
,
shape
)
[FunctionFile]
wblrnd
(
scale
,
shape
,
r
)
634
GNUOctave
[FunctionFile]
wblrnd
(
scale
,
shape
,
r
,
c
,...)
[FunctionFile]
wblrnd
(
scale
,
shape
,
[sz]
)
Returnamatrix ofrandomsamplesfromtheWeibulldistributionwithparameters
scaleandshape.
Whencalledwithasinglesizeargument,returnasquarematrixwiththedimension
specified.Whencalledwithmorethanonescalarargumentthefirsttwoargumentsare
takenasthenumberofrowsandcolumnsandanyfurtherargumentsspecifyadditional
matrixdimensions. Thesizemayalsobespecifiedwithavectorofdimensionssz.
Ifnosizeargumentsaregiventhentheresultmatrixisthecommonsizeofscaleand
shape.
[FunctionFile]
wienrnd
(
t
,
d
,
n
)
Returnasimulatedrealizationofthed-dimensionalWienerProcessontheinterval
[0,t].
Ifdisomitted,d=1isused. Thefirstcolumnofthereturnmatrixcontainstime,
theremainingcolumnscontaintheWienerprocess.
Theoptionalparameterndefinesthenumber ofsummandsusedforsimulatingthe
processoveranintervaloflength1. Ifnisomitted,n=1000isused.
Documents you may be interested
Documents you may be interested