tools

strym.tools contain a number of tools to perform specific analysis.

Import strym.tools as:

import strym.tools

acd([strymobj, window_size, plot_iteration, …])

Average Centroid Distance Algorithm for calculating stop-and-go wavestrength from

ellipse_fit(x, y[, fit_circle])

Fits an ellipse to the data point via least square method.

graham_scan(x, y)

Perform graham scan algorithm on (x, y) to return convex hull and convex perimeter

threept_center(x1, x2, x3, y1, y2, y3)

Calculates center coordinate of a circle circumscribing three points

coord_precheck(x, y)

Check the x, y coordinates for consistency and lengths If x and y are not of the same length, it should return False