How to use the fathom-web/clusters.euclidean function in fathom-web

To help you get started, we’ve selected a few fathom-web examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mozilla / price-tracker / src / extraction / fathom / ruleset_factory.js View on Github external
isNearImage(fnode) {
    const imageFnode = this.getHighestScoringImage(fnode);
    return linearScale(euclidean(fnode, imageFnode), 1000, 0);
  }