API

Our package consists of several different functions/classes to perform various operations on our dataset, including loading the data, plotting the data and analysis the data.

Card Deck

bufflib.DeckDP.CardDP()

A card deck for Question 1

Loading Data

bufflib.load_data.Buffalo(start_pos, ...)

This is a simple class representing a Buffalo

bufflib.load_data.load_data(data_set_id)

Loads a specific Buffalo dataset from all of the datasets we collect every year

Clustering Functions

bufflib.cluster.kmeans_cluster(data[, ...])

Perform KMeans clustering on data and plot the clustered points.

bufflib.cluster.elbow_method_plot(data[, ...])

Perform the elbow method and plot the results.

Plotting Functions

bufflib.plotting.plot_xy(x_values, y_values)

Plot X and Y values.

bufflib.plotting.kde_plot(x_data, y_data[, ...])

Create a Kernel Density Estimation (KDE) plot.

bufflib.plotting.quiver_plot(x, y, u, v[, ...])

Create a quiver plot to visualize vector fields.