apopt.com

Data / tutorials / q19-interpolate-threshold

Tutorial Q-19: Interpolate a threshold from four points

Tutorial

Find where a step test's lactate curve crosses a level by straight-line interpolation, apply a fixed and an individual threshold rule, and check the arithmetic against a smooth fit.

Files for the tutorial Interpolate a threshold from four points (https://apopt.com/course/tutorials/q19-interpolate-threshold/). raw/ holds the inputs as the device or app wrote them; clean/ holds the cleaned copies the tutorial writes; expected/ holds what a correct run prints and saves, so you can check your own run.

Files

FileSizeRowsWhat it is
expected/printed-output.txt488 BEverything the tutorial prints, cell by cell
raw/lactate_step_illustrative.csv96 B6 rowsILLUSTRATIVE step test, not a real athlete: lactate and heart rate at six stages from 10 to 15 km/h (speed_kmh, lactate_mmol, hr_bpm)

Every file has its own fixed address: copy a link and load it directly. preview.md shows the first rows of each table as text; datapackage.json lists columns, sizes and checksums.

Preview of raw/lactate_step_illustrative.csv

speed_kmhlactate_mmolhr_bpm
101.3138
111.4147
121.6155
132.2163
143.4171
155.6179

First 6 of 6 rows.

Where it came from

  • Source: Data-Driven Athletics tutorials (IRSRI, 2027)
  • Removed: nothing; inputs are synthetic, published course data, or the instructor's own
  • Permission: Published with the course under CC BY 4.0
  • Prepared with: dda/tutorials/build.py

Load it

import pandas as pd
df = pd.read_csv("https://apopt.com/data/tutorials/q19-interpolate-threshold/raw/lactate_step_illustrative.csv")
const text = await (await fetch("https://apopt.com/data/tutorials/q19-interpolate-threshold/raw/lactate_step_illustrative.csv")).text();

Or download load.py / load.js.

How to cite

Tutorial Q-19: Interpolate a threshold from four points. IRSRI Sports Research Institute, 2026. Data-Driven Athletics data repository. https://apopt.com/data/tutorials/q19-interpolate-threshold/