Peak Stats
data class PeakStats(val referenceInterval: Float, val peakPosition: Float, val peakAmplitude: Float, val mean: Float, val median: Float, val stdDev: Float, val variance: Float, val coeffOfVariation: Float, val skewness: Float, val kurtosis: Float, val pearsonSkew2: Float)
Statistical summary of pitch distribution around a detected histogram peak.
Produced by PitchHistogram.computePeakStats, keyed by reference interval.
Constructors
Properties
Link copied to clipboard
Coefficient of variation (stdDev / mean).
Link copied to clipboard
Histogram amplitude at the peak (proxy for duration/prominence).
Link copied to clipboard
Detected peak position in cents (the "actual" position).
Link copied to clipboard
Skewness coefficient: 3 × (mean − mode) / stdDev, where mode is the histogram peak position. (Named after Pearson's formula but uses mode, not median.)
Link copied to clipboard
Target interval in cents (the "expected" position).