LinearFitConfig

data class LinearFitConfig(val windowSeconds: Float = 1.5f, val breakThresholdSeconds: Float = 1.5f, val hopSeconds: Float? = null)

Configuration for piecewise linear segment fitting.

See also

PitchAnalysis.fitLinearSegments

Constructors

Link copied to clipboard
constructor(windowSeconds: Float = 1.5f, breakThresholdSeconds: Float = 1.5f, hopSeconds: Float? = null)

Types

Link copied to clipboard
class Builder
Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Maximum gap before a new segment starts.

Link copied to clipboard

Hop between windows. null = windowSeconds / 2.

Link copied to clipboard

Duration of the sliding window in seconds.