mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-11-28 04:46:07 -08:00
docs(subsync): correct startsStanding description in comments
This commit is contained in:
2 files changed
+3
-3
No files matched your search
@@ -325,6 +325,6 @@ test('scoreStanding caps a weak-quarter fit unless every quarter agrees on line
|
|||||||
const strongCoverage = { above: 14, alone: 5, weakestPart: 0.5 };
|
const strongCoverage = { above: 14, alone: 5, weakestPart: 0.5 };
|
||||||
// One quarter does not fit and starts do not agree everywhere: below the 0.65 auto bar.
|
// One quarter does not fit and starts do not agree everywhere: below the 0.65 auto bar.
|
||||||
assert.ok(scoreStanding({ ...strongCoverage, starts: 0 }, CALIBRATION_CLEAN) <= 0.6);
|
assert.ok(scoreStanding({ ...strongCoverage, starts: 0 }, CALIBRATION_CLEAN) <= 0.6);
|
||||||
// Every quarter agrees line for line (starts is the weakest quarter's z): not a partial fit.
|
// Starts agree significantly in every quarter and strongly overall: treated as a full fit.
|
||||||
assert.ok(scoreStanding({ ...strongCoverage, starts: 9 }, CALIBRATION_CLEAN) > 0.65);
|
assert.ok(scoreStanding({ ...strongCoverage, starts: 9 }, CALIBRATION_CLEAN) > 0.65);
|
||||||
});
|
});
|
||||||
@@ -656,8 +656,8 @@ export function scoreStanding(z: AlignmentStanding, cal: SyncCalibration): numbe
|
|||||||
covered = Math.min(covered, PARTIAL_FIT_SCORE_CAP);
|
covered = Math.min(covered, PARTIAL_FIT_SCORE_CAP);
|
||||||
}
|
}
|
||||||
// Intended override of the weak-quarter cap: startsStanding only reports the whole-file
|
// Intended override of the weak-quarter cap: startsStanding only reports the whole-file
|
||||||
// start agreement when every quarter's own agreement reaches PIECE_Z_MIN (else it reports the
|
// start agreement when every quarter's own agreement reaches PIECE_Z_MIN (else the lower of the
|
||||||
// weakest quarter), so clearing STARTS_Z_MIN means line starts agree significantly in every
|
// weakest quarter and the whole file), so clearing STARTS_Z_MIN means line starts agree significantly in every
|
||||||
// quarter. A recap or wrong-episode fit has a quarter near zero there. Coverage alone can dip
|
// quarter. A recap or wrong-episode fit has a quarter near zero there. Coverage alone can dip
|
||||||
// in one quarter for benign reasons, such as VAD over a music-heavy stretch.
|
// in one quarter for benign reasons, such as VAD over a music-heavy stretch.
|
||||||
const started =
|
const started =
|
||||||
|
|||||||
Reference in new issue
Block a user