YittynNg / OOP-Udacity

Object-oriented programming exercise from Udacity

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Object-oriented programming exercise from Udacity


Languages

Language:Python 96.9%Language:Jupyter Notebook 1.2%Language:C 1.2%Language:C++ 0.4%Language:JavaScript 0.1%Language:Fortran 0.0%Language:CSS 0.0%Language:HTML 0.0%Language:PowerShell 0.0%Language:Batchfile 0.0%