ó
    \!šho  ã                   ó   • S  r SS jrSS jrg)c                 ó2   • U S:X  a  gU [        U S-
  5      -  $ )Né    é   ©Ú	factorial)Úns    ÚhC:\Users\julio\OneDrive\Documentos\Trabajo\Ideas Frescas\venv\Lib\site-packages\mlxtend/math/counting.pyr   r   
   s    € ØˆAƒvØà”9˜Q ™UÓ#Ñ#Ð#ó    c                 óº   • U(       a+  [        X-   S-
  5      n[        U5      [        U S-
  5      -  nO$[        U 5      n[        U5      [        X-
  5      -  nX4-  nU$ )a¿  
Function to calculate the number of possible combinations.

Parameters
----------
n : `int`
    Total number of items.
k : `int`
    Number of elements of the target itemset.
with_replacement : `bool` (default: False)
    Allows repeated elements if True.

Returns
----------
comb : `int`
    Number of possible combinations.

Examples
-----------
For usage examples, please see
https://rasbt.github.io/mlxtend/user_guide/math/num_combinations/

r   r   )r   ÚkÚwith_replacementÚ	numeratorÚdenominatorÚcombs         r   Únum_combinationsr      sY   € ö0 Ü˜a™e a™iÓ(ˆ	Ü “l¤Y¨q°1©uÓ%5Ñ5‰ä˜a“Lˆ	Ü “l¤Y¨q©uÓ%5Ñ5ˆØÑ#€DØ€Kr	   c                 óX   • U(       a  X-  nU$ [        U 5      n[        X-
  5      nXE-  nU$ )a¨  
Function to calculate the number of possible permutations.

Parameters
----------
n : `int`
  Total number of items.
k : `int`
  Number of elements of the target itemset.
with_replacement : `bool`
  Allows repeated elements if True.

Returns
----------
permut : `int`
  Number of possible permutations.

Examples
-----------
For usage examples, please see
https://rasbt.github.io/mlxtend/user_guide/math/num_permutations/

r   )r   r   r   Úpermutr   r   s         r   Únum_permutationsr   3   s9   € ö0 Ø‘ˆð
 €Mô ˜a“Lˆ	Ü ¡Ó&ˆØÑ)ˆØ€Mr	   N)F)r   r   r   © r	   r   Ú<module>r      s   ðò$ôõDr	   