View source: R/pitch_postprocessing.R
costJumps | R Documentation |
Internal soundgen function.
costJumps(cand1, cand2)
cand1 , cand2 |
two candidate pitch values |
Internal helper function for calculating the cost of transitions between pitch candidates. Needed for postprocessing of pitch contour - finding the optimal pitch contour.
a = seq(-3, 3, by = .01)
b = 1 / (1 + 10 * exp(3 - 7 * abs(a)))
plot(a, b, type = 'l')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.