Skip to Content
개발자를 위한 필수 수학
book

개발자를 위한 필수 수학

by 토머스 닐드, 박해선
June 2024
Beginner to intermediate
352 pages
9h 29m
Korean
Hanbit Media, Inc.
Content preview from 개발자를 위한 필수 수학
138
개발자를 위한 필수 수학
그림
4-6
벡터의 덧셈은 교환 법칙이 성립합니다.
4.1.2
스케일링
스케일링
scaling
은 벡터의 길이를 늘이거나 줄이는 것입니다. 벡터에
스칼라
scalar
라고 하는 하나의
값을 곱하거나 스케일링해서 벡터를 늘이거나 줄입니다. [그림
4
-
7
]은 벡터
v
에
2
를 곱해 길
이를 두 배로 늘렸습니다.
그림
4-7
벡터 스케일링
수학적으로는 벡터의 각 원소에 다음과 같이 스칼라 값을 곱하면 됩니다.
3
1
3 32 6
22
1 12 2
v
v

=


×
 
= = =
 
×
 
139
4
장
선형대수학
[예제
4
-
6
]에서처럼 파이썬에서도 단순히 벡터에 스칼라를 곱합니다.
예제
4-6
파이썬에서 넘파이로 숫자 크기 조정하기
from
numpy
import
array
v
=
array([3,1])
# 벡터 스케일링
scaled_v
=
2.0
*
v
# 스케일링된 벡터 출력
print(scaled_v)
# [6. 2.]
[그림
4
-
8
]에서는
v
에
0
.
5
를 곱해 길이가 절반으로 줄어들었습니다.
그림
4-8
벡터를 절반으로 축소하기
데이터 조작은 벡터 조작입니다
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.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’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
QuotationMarkI 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
QuotationMarkI’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
QuotationMarkI'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.
Mark W.
Embedded Software Engineer

You might also like

개발자를 위한 머신러닝&딥러닝

개발자를 위한 머신러닝&딥러닝

로런스 모로니

Publisher Resources

ISBN: 9791169212502