35 lines
906 B
Python
35 lines
906 B
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
# IMPORTS
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
from fractions import Fraction;
|
|
import math;
|
|
import numpy as np;
|
|
from numpy.random import binomial as random_binomial;
|
|
random_binary = lambda p: (random_binomial(1, p) == 1);
|
|
import pandas as pd;
|
|
import random;
|
|
from random import uniform;
|
|
from random import choice as uniform_random_choice;
|
|
from tabulate import tabulate;
|
|
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
# EXPORTS
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
__all__ = [
|
|
'Fraction',
|
|
'math',
|
|
'np',
|
|
'random_binomial',
|
|
'random_binary',
|
|
'pd',
|
|
'random',
|
|
'uniform',
|
|
'uniform_random_choice',
|
|
'tabulate',
|
|
];
|