JSPM

Found 132 results for cosine

talisman

Straightforward fuzzy matching, information retrieval and NLP building blocks for JavaScript.

  • v1.1.4
  • 69.31
  • Published

fft-windowing

Applies a windowing function to an array of data, making it ready to be FFT'd.

  • v0.1.4
  • 49.79
  • Published

@thi.ng/color

Array-based color types, CSS parsing, conversions, transformations, declarative theme generation, gradients, presets

  • v5.7.58
  • 47.57
  • Published

react-native-animated-math

Animated API math extension - implements sine, cosine, tangent as AnimatedNodes

  • v0.3.1
  • 46.65
  • Published

cos-similarity

Computes the cosine similarity between two vectors

  • v2.0.0
  • 44.58
  • Published

ml-classify-text

Text classification using n-grams and cosine similarity

  • v2.0.1
  • 44.38
  • Published

semantic-chunking

Semantically create chunks from large texts. Useful for workflows involving large language models (LLMs).

  • v2.4.4
  • 42.67
  • Published

cmpstr

CmpStr is a lightweight, fast and well performing package for calculating string similarity

  • v3.0.3
  • 42.35
  • Published

wasm-similarity

WebAssembly-powered cosine similarity utilities for JavaScript/TypeScript

    • v0.1.11
    • 37.51
    • Published

    fast-cosine-similarity

    A very fast implementation of cosine-similarity for comparing two vectors. Up to 6x faster than the compute-cosine-similarity library.

    • v1.2.2
    • 37.31
    • Published

    glsl-cos-palette

    glsl function for making cosine palettes

    • v1.0.0
    • 36.83
    • Published

    vector-cosine-similarity

    Lightweight Cosine Similarity Function. Built as an alternative to the compute-cosine-similarity package. Works with high dimension vectors like openAI embeddings

    • v1.8.0
    • 34.09
    • Published

    fft-windowing-ts

    Applies a windowing function to an array of data, making it ready to be FFT'd.

    • v0.2.7
    • 33.13
    • Published

    math-cos

    Computes the cosine of a number.

    • v1.0.0
    • 28.23
    • Published

    algorith

    Collection complète d'algorithmes de similarité textuelle et moteur de génération aléatoire avancé

    • v1.0.1
    • 26.75
    • Published

    math-tan

    Computes the tangent of a number.

    • v1.0.0
    • 24.08
    • Published

    semantic-autocomplete

    A blazing-fast semantic search React component. Match by meaning, not just by letters. Search as you type without waiting (no debounce needed). Rank by cosine similarity.

    • v3.1.0
    • 23.56
    • Published

    spectral-analysis

    TypeScript library spectral analysis such as PSD and FFT

    • v1.0.12
    • 21.72
    • Published

    @elpassion/semantic-chunking

    Semantically create chunks from large texts. Useful for workflows involving large language models (LLMs).

    • v3.0.2
    • 20.30
    • Published

    cosine

    calculate the cosine distance between 2 arrays of strings

    • v0.0.1
    • 19.47
    • Published

    @seregpie/vector-math

    A collection of mathematical functions for working with vectors.

    • v1.8.0
    • 14.15
    • Published

    disi

    A collection of distance and similarity metrics written in pure JS

    • v0.1.2
    • 14.01
    • Published

    cosim

    Compute the cosine similarity of two vectors. Fully typed, 0 dependencies.

      • v1.0.4
      • 13.71
      • Published

      haraldmath

      Harald Math, a lightweight math library.

      • v0.1.6
      • 12.23
      • Published

      vek-engine

      Efficient WebAssembly-based vector math engine for JavaScript/TypeScript

      • v0.1.4
      • 11.11
      • Published

      thetajs

      Syntatic sugar for [object Math]

        • v1.1.1
        • 10.63
        • Published

        neuradb

        Lightweight In-Memory Vector Database for Fast Similarity Search

        • v1.0.7
        • 10.49
        • Published

        contacted-chunking

        Semantically create chunks from large texts. Useful for workflows involving large language models (LLMs).

        • v2.4.1
        • 9.15
        • Published

        @stdlib/random-streams-cosine

        Create a readable stream for generating pseudorandom numbers drawn from a raised cosine distribution.

        • v0.2.1
        • 8.88
        • Published

        covectric

        Covectric is a simple vector based search engine using cosine similarity and tf-idf methods for finding text similarity.

        • v0.0.7
        • 6.75
        • Published

        vect

        A Lightweight (Multidimensional) Vector Computation Library

          • v1.0.0
          • 6.52
          • Published

          math-cah

          Simply calculate the cosine of a triangle.

          • v1.0.0
          • 5.76
          • Published

          textsimilarity

          Simple text similarity module

          • v0.0.1
          • 5.76
          • Published

          math-cospi

          Computes cos(πx).

          • v1.0.0
          • 5.41
          • Published

          negcos

          Calculate the negative cosine of an angle

          • v1.0.0
          • 4.26
          • Published

          cosinity

          A simple package for cosine similarity calculation with both module support.

            • v1.0.3
            • 4.09
            • Published

            es-vector-math

            ES Vector Math is a library for working with vectors in JavaScript or TypeScript.

            • v0.0.9
            • 2.64
            • Published

            nlp-chasm

            Split your long text into paragraphs using NLP attributes. Chasm allows you to easily split your long text with just a suingle command, all you need are a few language attributes for each token. That's it!

            • v1.0.2
            • 2.64
            • Published

            embedding-search-node

            A vector search utility written purely in javascript with no dependencies. Allows for the searching/ranking of a list of javascript objects with 'embedding' field defined.

            • v0.0.6
            • 2.53
            • Published

            cos1ne-similarity

            Measures similarity between two Strings calculating the cosine of the angle between them.

            • v1.0.2
            • 2.46
            • Published

            @rbxts/wave

            A sine/cosine wave implementation for Roblox

            • v1.0.0
            • 2.46
            • Published

            @stdlib/random-array-cosine

            Create an array containing pseudorandom numbers drawn from a raised cosine distribution.

            • v0.2.1
            • 0.00
            • Published

            vector-space-model-similarity

            this module is using for calculating the cosine similarity and vector space model using tfidf

              • v1.0.161
              • 0.00
              • Published

              trigonometry.sol

              Basic trigonometric cuntions, sine and cosine

              • v1.0.2
              • 0.00
              • Published

              content-based-filtering

              this module is using for calculating the cosine similarity and vector space model using tfidf

                • v1.0.1
                • 0.00
                • Published

                @stdlib/random-iter-cosine

                Create an iterator for generating pseudorandom numbers drawn from a raised cosine distribution.

                • v0.2.1
                • 0.00
                • Published