Teknik Referans ve Formüller

Eksiksiz Matematiksel Uygulama

Uygulama Kılavuzu

Bu sayfa, tüm Run Analytics metrikleri için kopyala-yapıştır formülleri ve adım adım hesaplama yöntemleri sağlar. Bunları özel uygulamalar, doğrulama veya daha derin anlayış için kullanın.

⚠️ Uygulama Notları

  • Tüm süreler hesaplamalar için saniyeye dönüştürülmelidir
  • Koşu temposu ters orantılıdır (yüksek % = daha yavaş tempo)
  • Girdileri her zaman makul aralıklar için doğrulayın
  • Uç durumları ele alın (sıfıra bölme, negatif değerler)

Temel Performans Metrikleri

Kritik Koşu Hızı (CRS)

Formül:

CRS (m/s) = (D₂ - D₁) / (T₂ - T₁)
CRS Temposu/100m (saniye) = (T₄₀₀ - T₂₀₀) / 2

🧪 İnteraktif Hesap Makinesi - Formülü Test Et

100m başına CRS Temposu:
1:49
Hesaplama adımları:
CRS (m/s) = (400 - 200) / (368 - 150) = 0.917 m/s
Tempo/100m = 100 / 0.917 = 109 saniye = 1:49

JavaScript Uygulaması:

function calculateCRS(distance1, time1, distance2, time2) {
  // Gerekirse süreleri saniyeye dönüştür
  const t1 = typeof time1 === 'string' ? timeToSeconds(time1) : time1;
  const t2 = typeof time2 === 'string' ? timeToSeconds(time2) : time2;

  // CRS'yi m/s cinsinden hesapla
  const css_ms = (distance2 - distance1) / (t2 - t1);

  // 100m başına tempoyu saniye cinsinden hesapla
  const pace_per_100m = 100 / css_ms;

  // dd:ss formatına dönüştür
  const minutes = Math.floor(pace_per_100m / 60);
  const seconds = Math.round(pace_per_100m % 60);

  return {
    css_ms: css_ms,
    pace_seconds: pace_per_100m,
    pace_formatted: `${minutes}:${seconds.toString().padStart(2, '0')}`
  };
}

// Örnek kullanım:
const result = calculateCRS(200, 150, 400, 368);
// Döndürür: { css_ms: 0.917, pace_seconds: 109, pace_formatted: "1:49" }

Koşu Antrenman Stres Skoru (sTSS)

Tam Formül:

sTSS = (IF³) × Süre (saat) × 100
IF = NSS / FTP
NSS = Toplam Mesafe / Toplam Süre (m/dk)

🧪 İnteraktif Hesap Makinesi - Formülü Test Et

Hesaplanan sTSS:
55
Hesaplama adımları:
NSS = 3000m / 55dk = 54.5 m/dk
FTP = 100 / (93/60) = 64.5 m/dk
IF = 54.5 / 64.5 = 0.845
sTSS = 0.845³ × (55/60) × 100 = 55

JavaScript Uygulaması:

function calculateSTSS(distance, timeMinutes, ftpMetersPerMin) {
  // Normalize Edilmiş Koşu Hızını hesapla
  const nss = distance / timeMinutes;

  // Yoğunluk Faktörünü hesapla
  const intensityFactor = nss / ftpMetersPerMin;

  // Saati hesapla
  const hours = timeMinutes / 60;

  // Küp yoğunluk faktörünü kullanarak sTSS'yi hesapla
  const stss = Math.pow(intensityFactor, 3) * hours * 100;

  return Math.round(stss);
}

// Örnek kullanım:
const stss = calculateSTSS(3000, 55, 64.5);
// Döndürür: 55

// Yardımcı: CRS'yi FTP'ye dönüştür
function cssToFTP(cssPacePer100mSeconds) {
  // FTP m/dk = 100m / (tempo dakika cinsinden)
  return 100 / (cssPacePer100mSeconds / 60);
}

// Örnek: 1:33 (93 saniye) CRS
const ftp = cssToFTP(93); // Döndürür: 64.5 m/dk

Koşu Verimliliği

Formül:

Koşu Verimliliği = Kilometre Süresi (saniye) + Adım Sayısı
Koşu Verimliliği₂₅ = (Süre × 25/Pist Uzunluğu) + (Adımlar × 25/Pist Uzunluğu)

🧪 İnteraktif Hesap Makinesi - Formülü Test Et

Koşu Verimliliği Skoru:
35
Hesaplama:
Koşu Verimliliği = 20s + 15 adım = 35

JavaScript Uygulaması:

function calculateRunningEfficiency(timeSeconds, strideCount) {
  return timeSeconds + strideCount;
}

function calculateNormalizedRunningEfficiency(timeSeconds, strideCount, trackLength) {
  const normalizedTime = timeSeconds * (25 / trackLength);
  const normalizedStrides = strideCount * (25 / trackLength);
  return normalizedTime + normalizedStrides;
}

// Örnek:
const swolf = calculateRunningEfficiency(20, 15);
// Döndürür: 35

const swolf50m = calculateNormalizedRunningEfficiency(40, 30, 50);
// Döndürür: 35 (25m'ye normalize edilmiş)

Adım Mekaniği

Adım Hızı (SR)

Formül:

SR = 60 / Döngü Süresi (saniye)
SR = (Adım Sayısı / Saniye Cinsinden Süre) × 60

🧪 İnteraktif Hesap Makinesi - Formülü Test Et

Adım Hızı (SPM):
72
Hesaplama:
SR = (30 / 25) × 60 = 72 SPM

JavaScript Uygulaması:

function calculateStrideRate(strideCount, timeSeconds) {
  return (strideCount / timeSeconds) * 60;
}

// Örnek:
const sr = calculateStrideRate(30, 25);
// Döndürür: 72 SPM

Adım Başına Mesafe (DPS)

Formül:

DPS = Mesafe / Adım Sayısı
DPS = Mesafe / (SR / 60)

JavaScript Uygulaması:

function calculateDPS(distance, strideCount, pushoffDistance = 0) {
  const effectiveDistance = distance - pushoffDistance;
  return effectiveDistance / strideCount;
}

// Örnek (25m pist, 5m itme):
const dps = calculateDPS(25, 12, 5);
// Döndürür: 1.67 m/adım

// Birden fazla segment için:
const dps100m = calculateDPS(100, 48, 4 * 5);
// Döndürür: 1.67 m/adım (4 segment × 5m itme)

SR ve DPS'den Hız

Formül:

Hız (m/s) = (SR / 60) × DPS

JavaScript Uygulaması:

function calculateVelocity(strideRate, dps) {
  return (strideRate / 60) * dps;
}

// Örnek:
const velocity = calculateVelocity(70, 1.6);
// Döndürür: 1.87 m/s

Adım İndeksi (SI)

Formül:

SI = Hız (m/s) × DPS (m/adım)

JavaScript Uygulaması:

function calculateStrideIndex(velocity, dps) {
  return velocity * dps;
}

// Örnek:
const si = calculateStrideIndex(1.5, 1.7);
// Döndürür: 2.55

Performans Yönetim Grafiği (PMC)

CTL, ATL, TSB Hesaplamaları

Formüller:

CTL bugün = CTL dün + (TSS bugün - CTL dün) × (1/42)
ATL bugün = ATL dün + (TSS bugün - ATL dün) × (1/7)
TSB = CTL dün - ATL dün

JavaScript Uygulaması:

function updateCTL(previousCTL, todayTSS) {
  return previousCTL + (todayTSS - previousCTL) * (1/42);
}

function updateATL(previousATL, todayTSS) {
  return previousATL + (todayTSS - previousATL) * (1/7);
}

function calculateTSB(yesterdayCTL, yesterdayATL) {
  return yesterdayCTL - yesterdayATL;
}

// Bir dizi antrenman için PMC hesapla
function calculatePMC(workouts) {
  let ctl = 0, atl = 0;
  const results = [];

  workouts.forEach(workout => {
    ctl = updateCTL(ctl, workout.tss);
    atl = updateATL(atl, workout.tss);
    const tsb = calculateTSB(ctl, atl);

    results.push({
      date: workout.date,
      tss: workout.tss,
      ctl: Math.round(ctl * 10) / 10,
      atl: Math.round(atl * 10) / 10,
      tsb: Math.round(tsb * 10) / 10
    });
  });

  return results;
}

// Örnek kullanım:
const workouts = [
  { date: '2025-01-01', tss: 50 },
  { date: '2025-01-02', tss: 60 },
  { date: '2025-01-03', tss: 45 },
  // ... daha fazla antrenman
];

const pmc = calculatePMC(workouts);
// Her gün için CTL, ATL, TSB içeren dizi döndürür

Gelişmiş Hesaplamalar

Birden Fazla Mesafeden CRS (Regresyon Yöntemi)

JavaScript Uygulaması:

function calculateCRSRegression(distances, times) {
  // Doğrusal regresyon: mesafe = a + b*süre
  const n = distances.length;
  const sumX = times.reduce((a, b) => a + b, 0);
  const sumY = distances.reduce((a, b) => a + b, 0);
  const sumXY = times.reduce((sum, x, i) => sum + x * distances[i], 0);
  const sumXX = times.reduce((sum, x) => sum + x * x, 0);

  const slope = (n * sumXY - sumX * sumY) / (n * sumXX - sumX * sumX);
  const intercept = (sumY - slope * sumX) / n;

  return {
    css: slope, // Kritik koşu hızı (m/s)
    anaerobic_capacity: intercept // Anaerobik mesafe kapasitesi (m)
  };
}

// Birden fazla test mesafesi ile örnek:
const distances = [100, 200, 400, 800];
const times = [65, 150, 340, 720]; // saniye cinsinden
const result = calculateCRSRegression(distances, times);
// Döndürür: { css: 1.18, anaerobic_capacity: 15.3 }

Tempodan Yoğunluk Faktörü

JavaScript Uygulaması:

function calculateIntensityFactor(actualPace100m, thresholdPace100m) {
  // Tempoyu hıza dönüştür (m/s)
  const actualSpeed = 100 / actualPace100m;
  const thresholdSpeed = 100 / thresholdPace100m;
  return actualSpeed / thresholdSpeed;
}

// Örnek:
const if_value = calculateIntensityFactor(110, 93);
// Döndürür: 0.845 (eşiğin %84.5'inde koşuyor)

Tempo Tutarlılığı Analizi

JavaScript Uygulaması:

function analyzePaceConsistency(segments) {
  const paces = segments.map(kilometer => kilometer.distance / kilometer.time);
  const avgPace = paces.reduce((a, b) => a + b) / paces.length;

  const variance = paces.reduce((sum, pace) =>
    sum + Math.pow(pace - avgPace, 2), 0) / paces.length;
  const stdDev = Math.sqrt(variance);
  const coefficientOfVariation = (stdDev / avgPace) * 100;

  return {
    avgPace,
    stdDev,
    coefficientOfVariation,
    consistency: coefficientOfVariation < 5 ? "Mükemmel" :
                 coefficientOfVariation < 10 ? "İyi" :
                 coefficientOfVariation < 15 ? "Orta" : "Değişken"
  };
}

// Örnek:
const segments = [
  { distance: 100, time: 70 },
  { distance: 100, time: 72 },
  { distance: 100, time: 71 },
  // ...
];
const analysis = analyzePaceConsistency(segments);
// Döndürür: { avgPace: 1.41, stdDev: 0.02, coefficientOfVariation: 1.4, consistency: "Mükemmel" }

Adım Sayısından Yorgunluk Tespiti

JavaScript Uygulaması:

function detectFatigue(segments) {
  const firstThird = segments.slice(0, Math.floor(segments.length/3));
  const lastThird = segments.slice(-Math.floor(segments.length/3));

  const firstThirdAvg = firstThird.reduce((sum, kilometer) =>
    sum + kilometer.strideCount, 0) / firstThird.length;
  const lastThirdAvg = lastThird.reduce((sum, kilometer) =>
    sum + kilometer.strideCount, 0) / lastThird.length;

  const strideCountIncrease = ((lastThirdAvg - firstThirdAvg) / firstThirdAvg) * 100;

  return {
    firstThirdAvg: Math.round(firstThirdAvg * 10) / 10,
    lastThirdAvg: Math.round(lastThirdAvg * 10) / 10,
    percentIncrease: Math.round(strideCountIncrease * 10) / 10,
    fatigueLevel: strideCountIncrease < 5 ? "Minimal" :
                  strideCountIncrease < 10 ? "Orta" :
                  strideCountIncrease < 20 ? "Önemli" : "Şiddetli"
  };
}

// Örnek:
const segments = [
  { strideCount: 14 }, { strideCount: 14 }, { strideCount: 15 },
  { strideCount: 15 }, { strideCount: 16 }, { strideCount: 16 },
  { strideCount: 17 }, { strideCount: 18 }, { strideCount: 18 }
];
const fatigue = detectFatigue(segments);
// Döndürür: { firstThirdAvg: 14.3, lastThirdAvg: 17.7, percentIncrease: 23.8, fatigueLevel: "Şiddetli" }

Veri Doğrulama

Antrenman Veri Kalitesi Kontrolleri

JavaScript Uygulaması:

function validateWorkoutData(workout) {
  const issues = [];

  // Makul tempo aralıklarını kontrol et (100m için 1:00-5:00)
  const avgPace = (workout.totalTime / workout.totalDistance) * 100;
  if (avgPace < 60 || avgPace > 300) {
    issues.push(`Olağandışı ortalama tempo: ${Math.round(avgPace)}s / 100m`);
  }

  // Makul adım sayılarını kontrol et (25m için 10-50)
  const avgStridesPer25m = (workout.totalStrides / workout.totalDistance) * 25;
  if (avgStridesPer25m < 10 || avgStridesPer25m > 50) {
    issues.push(`Olağandışı adım sayısı: ${Math.round(avgStridesPer25m)} / 25m`);
  }

  // Makul adım hızını kontrol et (30-150 SPM)
  const avgSR = calculateStrideRate(workout.totalStrides, workout.totalTime);
  if (avgSR < 30 || avgSR > 150) {
    issues.push(`Olağandışı adım hızı: ${Math.round(avgSR)} SPM`);
  }

  // Eksik segmentleri kontrol et (zaman boşlukları)
  if (workout.segments && workout.segments.length > 1) {
    for (let i = 1; i < workout.segments.length; i++) {
      const gap = workout.segments[i].startTime -
                  (workout.segments[i-1].startTime + workout.segments[i-1].duration);
      if (gap > 300) { // 5 dakikalık boşluk
        issues.push(`Segment ${i} ile ${i+1} arasında büyük boşluk tespit edildi`);
      }
    }
  }

  return {
    isValid: issues.length === 0,
    issues
  };
}

// Örnek:
const workout = {
  totalDistance: 2000,
  totalTime: 1800, // 30 dakika
  totalStrides: 800,
  segments: [/* kilometre verileri */]
};
const validation = validateWorkoutData(workout);
// Döndürür: { isValid: true, issues: [] }

Yardımcı Fonksiyonlar

Zaman Dönüştürme Araçları

JavaScript Uygulaması:

// dd:ss'yi saniyeye dönüştür
function timeToSeconds(timeString) {
  const parts = timeString.split(':');
  return parseInt(parts[0]) * 60 + parseInt(parts[1]);
}

// Saniyeyi dd:ss'ye dönüştür
function secondsToTime(seconds) {
  const minutes = Math.floor(seconds / 60);
  const secs = Math.round(seconds % 60);
  return `${minutes}:${secs.toString().padStart(2, '0')}`;
}

// Saniyeyi ss:dd:ss'ye dönüştür
function secondsToTimeDetailed(seconds) {
  const hours = Math.floor(seconds / 3600);
  const minutes = Math.floor((seconds % 3600) / 60);
  const secs = Math.round(seconds % 60);
  return `${hours}:${minutes.toString().padStart(2, '0')}:${secs.toString().padStart(2, '0')}`;
}

// Örnekler:
timeToSeconds("1:33"); // Döndürür: 93
secondsToTime(93); // Döndürür: "1:33"
secondsToTimeDetailed(3665); // Döndürür: "1:01:05"

Uygulama Kaynakları

Bu sayfadaki tüm formüller üretim için hazır ve bilimsel literatüre göre doğrulanmıştır. Bunları özel analiz araçları, doğrulama veya koşu performans hesaplamalarının daha derin anlaşılması için kullanın.

💡 En İyi Uygulamalar

  • Girdileri doğrulayın: Hesaplamadan önce makul aralıkları kontrol edin
  • Uç durumları ele alın: Sıfıra bölme, negatif değerler, boş veri
  • Uygun şekilde yuvarlayın: CTL/ATL/TSB için 1 ondalık, sTSS için tam sayı
  • Hassasiyeti saklayın: Veritabanında tam hassasiyeti tutun, görüntülemede yuvarlayın
  • Kapsamlı test yapın: Hesaplamaları doğrulamak için bilinen iyi verileri kullanın