Scilab 5.5.1
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
samwr
Sampling without replacement
Calling Sequence
s = samwr(sizam, numsamp, X)
Arguments
- sizam
integer. Size of a sample. It must be lower than or equal to the size of
X
.- numsamp
integer. Number of samples to be extracted.
- X
column vector. It contains the population.
- s
matrix of size
sizsam * numsamp
. It containsnumsamp
random samples (the columns) each ofsizam
extractions without replacement fromX
.
Description
Gives samples without replacement from a column vector.
Random number generator
samwr
is based on grand for generating the random samples. Use grand("setsd", seed)
to change the seed for samwr
.
Examples
a = [0.33 1.24 2.1 1.03] s = samwr(4, 12, a)
See Also
Report an issue | ||
<< samplef | Sampling | Summaries >> |