Toggle navigation
Toggle navigation
This project
Loading...
Sign in
이수빈
/
Find_your_own_personal_color
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
starbucksdolcelatte
2019-05-27 10:08:56 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3fe5fbec1855fc18f4dc2739b68ea044c42b47f4
3fe5fbec
1 parent
74e8072f
add function is_warm()
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
tone_analysis.py
tone_analysis.py
View file @
3fe5fbe
...
...
@@ -40,8 +40,16 @@ class ToneAnalysis:
C : 전체 계절에 대한 c들의 집합 list
a : 인체 부위별 가중치(list : [skin, hair, eye])
'''
print
(
t
)
print
(
C
[
t
])
#분모
denominator
=
sum
((
1
/
self
.
minDist
(
x
,
C
[
i
],
a
))
for
i
in
range
(
4
))
#분자
numerator
=
1
/
(
self
.
minDist
(
x
,
C
[
t
],
a
))
return
(
numerator
/
denominator
)
*
100
def
is_warm
(
self
,
lab
):
if
(
lab
[
1
]
>=
lab
[
2
]):
return
0
#cool
else
:
return
1
#warm
...
...
Please
register
or
login
to post a comment