Computes cosine similarity between each pair of signatures in a sigverse signature collection
Arguments
- signature1, signature2
sigverse signature data.frames. See
sigshared::example_signature()
.- assume_sensible_input
A logical flag indicating whether to skip validation checks for the input signatures. Enabling this option can significantly speed up the cosine similarity calculation by assuming that both inputs are valid signature objects and that their channels are already sorted. This option should only be used when performance is critical and these assumptions can be verified upstream.