Please note that the recommended version of Scilab is 6.0.0. This page might be outdated.
See the recommended documentation of this function
Sampling without replacement
s = samwr(sizam, numsamp, X)
integer. Size of a sample. It must be lower than or equal to the size of
integer. Number of samples to be extracted.
column vector. It contains the population.
matrix of size
sizsam * numsamp. It contains
numsamprandom samples (the columns) each of
sizamextractions without replacement from
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
a = [0.33 1.24 2.1 1.03] s = samwr(4, 12, a)