Skip to main content

signature_size

Function signature_size 

Source
pub fn signature_size(dim: usize, max_depth: usize) -> usize
Expand description

Computes the number of signature components for given dim and depth.

Total terms = Σ_{k=1}^{depth} dim^k = dim * (dim^depth - 1) / (dim - 1) For dim=1, it’s just depth.