rate
(DOC) Maps each segment into its derivative.
The result is scaled according to the unit argument. If a segment increases at a rate of 1
per second, and unit
is Duration.SECOND, the derivative will be 1
. But if (for the same segment) unit
is Duration.MINUTE, the derivative will be 60
.
In fancy math terms, unit
is the length of the time basis vector, and the result is covariant with it.
Parameters
unit
length of the time basis vector