표본 명령

GeoGebra Manual
Mathcare (토론 | 기여)님의 2020년 6월 29일 (월) 18:43 판
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)
이동: 둘러보기, 검색
Accessories dictionary.png
이 페이지는 공식 매뉴얼에서 출력과 pdf를 위한 부분입니다. 일반 사용자들은 이 페이지를 편집할 수 없습니다. 만일 이 페이지에서 오류를 발견하였으면, 연락하여 주시기 바랍니다.사용자에 의해 편집 가능한 버전으로 이동
Sample( <List>, <Size> )
Returns list of n randomly chosen elements of a list; elements can be chosen several times.
예: Sample({1, 2, 3, 4, 5}, 5) yields for example list1 = {1, 2, 1, 5, 4}.


Sample( <List>, <Size>, <With Replacement> )
Returns list of n randomly chosen elements of a list. Elements can be chosen several times if and only if the last parameter is true.
예: Sample({1, 2, 3, 4, 5}, 5, true) yields for example list1 = {2, 3, 3, 4, 5}.


예: In the Menu view cas.svg CAS View the input list can contain different types of objects:
예:
  • Sample({-5, 2, a, 7, c}, 3) yields for example {a, 7, -5}.
  • The list can include lists as well: Let List1 be {1, 2, 3}: Sample({List1, 4, 5, 6, 7, 8}, 3, false) yields for example {6, {1, 2, 3}, 4}.
© 2024 International GeoGebra Institute