Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Português - 日本語

Please note that the recommended version of Scilab is 6.0.0. This page might be outdated.
See the recommended documentation of this function

Aide Scilab >> Statistiques > samwr

samwr

Sampling without replacement

Calling Sequence

s = samwr(sizam,numsamp,X)

Arguments

sizam

integer. Size of a sample. It must be less or equal than size of X.

numsamp

integer. Number of samples to be extracted.

X

column vector. It contains the population.

s

matrix of type sizsam x numsamp. It contains numsamp random samples (the columns) each of sizam (size(X,'*')) extractions, without replacement, from the column vector X.

Description

Gives samples without replacement from a column vector.

Examples

a=[0.33 1.24 2.1 1.03]
s=samwr(4,12,a)

See Also

  • sample — Sampling with replacement
  • samplef — sample with replacement from a population and frequences of his values.

Authors

Carlos Klimann

Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Oct 05 12:10:58 CEST 2011