Skip to content

Conversation

@vederko-p
Copy link
Collaborator

:3

Comment on lines +10 to +12
int fact(int n){
return n-1 ? n * fact(n-1) : n;
}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

лучше переписать на итеративный метод, будет эффективнее, чем рекурсия

static PyMethodDef ProbStatMethods[] = {
/* geometry probability */
{
"geometry",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

не очень понятное название "geometry", нужно, чтобы пользователю было все предельно ясно тип : find_geometry_prob


/* conditional probability */
{
"conditional",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

здесь тоже нужно сменить на find_conditional_prob (пиши мне, если есть предложения для названия лучше)


/* Bernoulli simple */
{
"bernoulliSimple",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bernoulli_trials?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants