Method Normalize
- Namespace
- MailFathom.Application.Emails.Embeddings
- Assembly
- MailFathom.Application.dll
Normalize()
Scales the vector to unit length.
public EmbeddingVector Normalize()
Returns
- EmbeddingVector
The normalized vector, or this one when it is already of unit length.
Exceptions
- InvalidOperationException
Thrown when every component is zero, which is a direction no scaling can recover.