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.

Random draw function

reassesslib.utils.random_draw([x])

Samples from the numbers from 1 to 5, with a biased distribution based on the input.

Loading Data

reassesslib.load_data.Ant(ant_type, ...)

This is a simple class representing a Ant

reassesslib.load_data.load_data(data_set_id)

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

Movement Functions

reassesslib.movement_and_outliers.generate_movement(ants)

Generate random movements for ants based on their type.

Outlier Functions

reassesslib.movement_and_outliers.identify_outliers(...)

Identifies outliers based on their head size and mandible size

Plotting Functions

reassesslib.plotting.plot_histogram(speeds, ...)

Plot histogram of ant speeds by type.

reassesslib.plotting.plot_scatter(x_values, ...)

Create a scatter plot with different colors for different labels.

reassesslib.plotting.plot_quiver(X, Y, U, V)

Plot quiver plot of ant movements.