Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.2 - 日本語

Change language to:
English - Français - Português - Русский

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

Scilabヘルプ >> Statistics > Sampling > sample

sample

置換を有する標本化

呼び出し手順

s = sample(n,X,orient)

パラメータ

n

正の整数 (標本の大きさ)

X

行列. 標本はこの行列から展開されます.

orient

オプションのパラメータ. 使用可能な値は 1, 2, 'r' または 'c'です

s

標本を含むベクトルまたは行列

説明

この関数は,ベクトル(または行列) nx1を出力します. これには,行列Xから抽出された置換を有する n個のランダムな標本が含まれます.

s=sample(n,X) (または s=sample(n,X,'*')) は, その値がXからのn個の値のランダムな標本である ベクトル s を返します.

s=sample(n,X,'r') (または等価な s=sample(n,X,1)) は,size(X,'r')xnの行列を返します. これには,Xの行から置換付きで展開された n行のランダム標本が含まれます.

s=sample(n,X,'c') (または等価な s=sample(n,X,2)) は,nxsize(X,'c')の行列を返します. これには,Xの列から置換付きで展開された n列のランダム標本が含まれます.

X=['a' 'dd' 'arreu'; 'ber' 'car' 'zon']
s=sample(25,X)
s=sample(25,X,'r')
s=sample(25,X,'c')

参照

  • samplef — 母集団からの置換を有する標本化および その値の頻度.
  • samwr — 置換を行わない標本化
Report an issue
<< Sampling Sampling samplef >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Apr 01 10:25:03 CEST 2015