Skip to main content

LapStatisticsAnalyzer - Circuit Session - Lime Rock MX-5

Detailed lap timing statistics with best/worst/average times and consistency metrics

Sample Data

AttributeValue
Sourcegarage61
Categorycircuit_lap
File01K451BYJ64G0T2GPQ44AKXC86

Available Channels: LongAccel, VertAccel, YawRate, abs_active, brake, clutch, drs_active, gear, lap_distance_pct, lat_accel, latitude, longitude, position_type, rpm, speed, speed_kph, speed_mph, steering, throttle, time, track_pct, yaw


Configuration

SettingValue
Slice Typelap
Metadata OnlyTrue

When to Use

  • User asks about lap times or 'what was my best lap'
  • User wants consistency analysis across laps
  • User asks 'how fast did I go' or lap time distribution
  • User wants to see improvement over a session

Key Options

OptionDescription
lap_selectionall
n_best_lapsNumber of best laps to analyze when lap_selection='best' (default: 5)
filter_outliersRemove outlier laps using IQR method (default: True)

Sample Output

Subjects Analyzed: 1

All Laps (Default)

Options: lap_selection=all

{
"metrics": [
{
"subject_id": "01K451BYJ64G0T2GPQ44AKXC86",
"driver_name": "Marcel Hild",
"lap_count": 5,
"best_lap": 62.70819854736328,
"worst_lap": 64.7780990600586,
"average_lap": 63.404999542236325,
"median_lap": 63.09519958496094,
"std_dev": 0.745294905311843,
"consistency": 1.1754513219661418,
"lap_times": [
62.70819854736328,
62.87300109863281,
63.09519958496094,
63.570499420166016,
64.7780990600586
],
"outliers_filtered": 2,
"best_lap_formatted": "1:02.708",
"worst_lap_formatted": "1:04.778",
"average_lap_formatted": "1:03.405",
"median_lap_formatted": "1:03.095",
"std_dev_formatted": "0.745s",
"consistency_formatted": "1.18%",
"notes": "2 outlier(s) filtered"
}
],
"metadata": {
"analyzer": "lapstats",
"title": "Lap Statistics",
"subjects_analyzed": 1
}
}

Metrics Summary

MetricValue
Subject: 01K451BYJ64G0T2GPQ44AKXC86Marcel Hild

Best Lap Only

Options: lap_selection=best

{
"metrics": [
{
"subject_id": "01K451BYJ64G0T2GPQ44AKXC86",
"driver_name": "Marcel Hild",
"lap_count": 1,
"best_lap": 62.70819854736328,
"worst_lap": 62.70819854736328,
"average_lap": 62.70819854736328,
"median_lap": 62.70819854736328,
"std_dev": 0.0,
"consistency": 0.0,
"lap_times": [
62.70819854736328
],
"outliers_filtered": 0,
"best_lap_formatted": "1:02.708",
"worst_lap_formatted": "N/A",
"average_lap_formatted": "N/A",
"median_lap_formatted": "N/A",
"std_dev_formatted": "N/A",
"consistency_formatted": "N/A",
"notes": "Single lap selected"
}
],
"metadata": {
"analyzer": "lapstats",
"title": "Lap Statistics",
"subjects_analyzed": 1
}
}

Metrics Summary

MetricValue
Subject: 01K451BYJ64G0T2GPQ44AKXC86Marcel Hild

No Outlier Filtering

Options: filter_outliers=False

{
"metrics": [
{
"subject_id": "01K451BYJ64G0T2GPQ44AKXC86",
"driver_name": "Marcel Hild",
"lap_count": 7,
"best_lap": 12.229122156,
"worst_lap": 274.716666666,
"average_lap": 86.28154093331166,
"median_lap": 63.09519958496094,
"std_dev": 78.93126792092303,
"consistency": 91.48105964163324,
"lap_times": [
12.229122156,
62.70819854736328,
62.87300109863281,
63.09519958496094,
63.570499420166016,
64.7780990600586,
274.716666666
],
"outliers_filtered": 0,
"best_lap_formatted": "0:12.229",
"worst_lap_formatted": "4:34.717",
"average_lap_formatted": "1:26.282",
"median_lap_formatted": "1:03.095",
"std_dev_formatted": "78.931s",
"consistency_formatted": "91.48%",
"notes": ""
}
],
"metadata": {
"analyzer": "lapstats",
"title": "Lap Statistics",
"subjects_analyzed": 1
}
}

Metrics Summary

MetricValue
Subject: 01K451BYJ64G0T2GPQ44AKXC86Marcel Hild

Example Calls

Show me detailed lap times for that Formula Vee session

analyze(analyzers='lapstats', event='01H8SP4HK4')

Displays all lap times with statistics including best, worst, average, and consistency

What were my 10 best laps

analyze(analyzers='lapstats', event='01H8SP4HK4', lap_selection='best', n_best_laps=10)

Shows only the top 10 fastest laps with detailed statistics

How consistent were my lap times today

analyze(analyzers='lapstats', after='2023-08-26', lap_selection='all')

Analyzes all laps to show consistency metrics (std dev, coefficient of variation)


Generated from b4racing.analysis.analyzers.lapstats.LapStatisticsAnalyzer