Ask Your Question
0

python functions' documentation

asked 2016-09-03 03:23:02 -0600

littletom gravatar image

for example : PCACompute(data, mean[, eigenvectors[, maxComponents]]) in this documentation,what does these square brakets mean???

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-09-03 03:39:46 -0600

berak gravatar image

the arguments in square brackets are optional (and you might skip them).

note, that if you skip some args, but call a later one, like maxComponents, you have to do it in key=value style, like:

data = ...
mean = None
cv2.PCACompute(data, mean, maxComponents=32)
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-09-03 03:23:02 -0600

Seen: 144 times

Last updated: Sep 03 '16