@kognifai/cogsengine
    Preparing search index...

    Function distance

    • Calculates Euclidean distance between the two vectors. Is calculated as the square root of the sum of the squared differences between the two vectors

      Parameters

      • a:
            | readonly [number, number, number]
            | Readonly<Float32Array<ArrayBufferLike>>
            | Readonly<Float64Array<ArrayBufferLike>>
      • b:
            | readonly [number, number, number]
            | Readonly<Float32Array<ArrayBufferLike>>
            | Readonly<Float64Array<ArrayBufferLike>>

      Returns number