Texonom
Texonom
/
Science
Science
/Mathematics/Math Field/Statistics/Statistics Tool/Numpy/numpy ndarray/
np.arange()
Search

np.arange()

Creator
Creator
Seonglae Cho
Created
Created
2024 Mar 31 4:34
Editor
Editor
Seonglae Cho
Edited
Edited
2024 Sep 22 23:7
Refs
Refs
like range function
단계의 크기 지정
 
 
 
(파이썬) numpy.arange
numpy.arange([start, ] stop, [step, ] dtype=None) numpy 모듈의 arange 함수는 반열린구간 [start, stop) 에서 step 의 크기만큼 일정하게 떨어져 있는 숫자들을 array 형태로 반환해 주는 함수다. stop 매개변수의 값은 반드시 전달되어야 하지만 start 는 step 은 꼭 전달되지 않아도 된다. start 값이 전달되지 않았다면 0 을 기본값으로 가지며, step 값이 전달되지 않았다면 1 값을 기본값으로 갖게 된다. dtype 의 경우 결과로 반환되는 array 이의 type 을 지정할 때 사용한다. dtype 값이 주어지지 않는 경우 전달된 다른 매개 변수로부터 type 을 추론하게 된다. 다음의 예를 보면 쉽게 이해할 수 있을 것이다..
(파이썬) numpy.arange
https://codepractice.tistory.com/88
(파이썬) numpy.arange
 
 
 

Recommendations

Texonom
Texonom
/
Science
Science
/Mathematics/Math Field/Statistics/Statistics Tool/Numpy/numpy ndarray/
np.arange()
Copyright Seonglae Cho