|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
|
inlinenoexcept |
Rate at which two streams approach or separate.
| a | First span, chronological order |
| b | Second span, chronological order, same length as a |
| dt | Seconds per sample |
Distinct from correlation, which asks whether two streams move in the same direction as each other, not whether they are getting nearer. Two streams can correlate strongly while one holds steady and the other drifts away from it, or diverge while both move in the same direction at different rates. This is the direct measure of mutual approach the dancers-and-a-third-point case needs: not whether the third point's motion resembles either hand's, but whether it is closing on the gap between them.
Operates on scalar streams. A caller with vector positions supplies the scalar separation (glm::length of the difference, or a projected distance) rather than raw components, since "approaching" is a statement about a single distance, not about three independent axes each separately trending.
Definition at line 192 of file Relation.hpp.
References a, b, and MayaFlux::Kinesis::Stochastic::Estimate::trend_slope().
Here is the call graph for this function: