pysiglib.branched_sig_length#
- branched_sig_length(dimension, degree, *, planar=False, scalar_term=False)[source]#
Returns the length of a truncated branched signature.
- Parameters:
dimension – Dimension of the underlying path.
degree – Maximum tree order (number of nodes).
planar – If True, return the length for planar (ordered) branched signatures.
scalar_term – If True, includes the empty-tree scalar term at index 0 in the length. If False (default), the returned length is one less (matching
branched_sigoutput withscalar_term=False).
- Returns:
Length of the branched signature array.
Citation#
If you found this library useful in your research, please consider citing the paper:
@article{shmelev2025pysiglib,
title={pySigLib-Fast Signature-Based Computations on CPU and GPU},
author={Shmelev, Daniil and Salvi, Cristopher},
journal={arXiv preprint arXiv:2509.10613},
year={2025}
}