간단히 말해 벡터는 공간상에서 특정 방향과 길이를 가진 화살표이며 종종 데이터의 한 조각을
나타냅니다. 벡터는 선형대수학의 핵심 구성 요소로 여기에는 행렬과 선형 변환도 포함됩니다.
벡터의 기본 형태에는 위치에 대한 개념이 없으므로 항상 꼬리가 데카르트 좌표계의 원점 (
0
,
0
)에서 시작한다고 생각하세요.
[그림
4
-
1
]은 수평 방향으로
3
스텝, 수직 방향으로
2
스텝 이동하는 벡터
v
입니다.
그림
4-1
간단한 벡터
다시 한번 강조하면 벡터의 목적은 데이터를 시각적으로 표현하는 것입니다. 집의 면적이
18
,
000
평방피트이고 가치가
260
,
000
달러인 데이터가 있다고 가정해보죠. 이를 가로 방향으
로
18
,
000
스텝, 세로 방향으로
260
,
000
스텝을 이동하는 벡터 [
18000
,
260000
]으로 표현할
수 있습니다.
벡터는 수학적으로 다음과 같이 선언합니다.
3
2
x
v
y
v
=
=
[예제
4
-
1
]처럼 파이썬 리스트와 같은 간단한 컬렉션을 사용해 벡터를 선언합니다.
133
4
장
선형대수학
예제
4-1
파이썬 리스트로 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.
O’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
I wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
I’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
I'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.