Compute depth values using a streaming (pre-sorted reference) algorithm. This approach pre-sorts the reference data at each time point, enabling O(T log N) depth computation per curve instead of O(N^2 T).
Usage
streaming.depth(fdataobj, fdataori = NULL, method = c("FM", "MBD", "BD"), ...)Arguments
- fdataobj
An object of class 'fdata' to compute depth for.
- fdataori
An object of class 'fdata' as reference sample. If NULL, uses fdataobj as reference.
- method
Streaming depth method: "FM" (Fraiman-Muniz, default), "MBD" (modified band depth), or "BD" (band depth).
- ...
Additional arguments (ignored).