/OOP-Udacity

Object-oriented programming exercise from Udacity

Primary LanguagePython

OOP-Udacity

Object-oriented programming exercise from Udacity

Contents

  • Object-oriented programming exercises
  • Distributions packages

Repository Structures

.
|- OOP_exercises
|- packages
	|- gaussian_distribution_package (gaussian distribution only)
	|- distributions_package (gaussian distribution and binomial distribution)
|- test_venv

Installation

  1. Clone this repository
  2. Install python3 and pip

How to use distribution package

  1. Setup a virtual environment and activate it. A virtual environment test_venv has already set up in this repo.
cd test_venv/Scripts
activate
  1. Select package that you wish to install
cd ../../packages/[package]
  1. Pip install the package. Can use pip list to check whether the package has downloaded successfully.
pip install .
pip list

  1. Open python environment and import the package
> python
>>> from distributions import Gaussian
>>> from distributions import Binomial