Skip to content

Instantly share code, notes, and snippets.

View moorepants's full-sized avatar

Jason K. Moore moorepants

View GitHub Profile
@moorepants
moorepants / monolithic-extra-packages-conda.txt
Created September 19, 2023 14:51
TU Delft Anaconda Extra Packages 2023-2024
# channel priority strict (pull from defaults, then look to conda forge, then
# look to twh)
# defaults
# conda-forge
# twh
# these are all the requested packages (conda names)
anaconda
alpaca_kernel_2
anaconda
asciitree
@moorepants
moorepants / visuals_clustering.py
Created January 25, 2023 10:06
Script that runs a weighted k-means on overlapping rectangles on a grid to find clusters of "focus"
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.patches as pat
import sklearn.cluster as clu
# set the seed if you want the same random numbers on eac execution
#np.random.seed(5)
# generate data for random overlapping rectangles
num_rectangles = 50
@moorepants
moorepants / simple_jump.py
Created November 18, 2022 13:37
Simple examples of jump modeling with power and work breakdowns
# This is a simple point mass "jumping" simulation. Given a point mass of a
# realistic human mass that starts some height above the ground with a force
# that acts vertically between the ground and mass that represents the force
# that legs can generate, we simulate from standstill to maximum height in the
# air and calculate the work done by all forces on the mass as well as the
# potential and kinetic energy at all times in the simulation. There is also a
# Coulomb friction term that can represent some dissapative resistance to the
# motion.
#
# O |g
@moorepants
moorepants / Frame_test_n_pendulum.ipynb
Created June 30, 2021 14:27
Peter Stahlecker's example that has a large number of operations
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@moorepants
moorepants / kalman_filter.m
Last active July 7, 2023 05:59
Special Topics in Sports Engineering Smartphone Exercise Files
function [x, P] = kalman_filter(A, B, C, Q, R, x, u, y, P)
% kalman_filter - Returns the next state estimate and its covariance matrix
% using the Kalman Filter predict & update. Note that this implementation is
% not numerically stable, use production code for non-textbook problems.
%
% Syntax: [x, P] = kalman_filter(A, B, C, Q, R, x, u, y, P)
%
% Inputs:
% A - State matrix, size 5 x 5
% B - Input matrix, size 5 x 1
@moorepants
moorepants / dcc-fair-support-dmp.rst
Last active January 8, 2021 13:00
DCC FAIR Support Request Data Management Plan

Data Management Plan

This assignment will utilize two types of data:

  1. Existing static and motion data collected from bicycle and bicyclists during prior research. For example, time series from rate gyros or motion capture systems, geometry of vehicles, and anthropomorphic data of the riders.
  2. Bicycle and rider motion data generated from simulations.
@moorepants
moorepants / imu-map-assignment.pdf
Last active November 10, 2020 09:28
BEP Assignment: Generalized Variables From Two IMUs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
We couldn’t find that file to show.
@moorepants
moorepants / chaos_pendulum_pythreejs_manual.ipynb
Last active June 5, 2020 14:19
Notebooks for lecture 18 Fall 2019.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.