JODA  0.13.1 (59b41972)
JSON On-Demand Analysis
Public Member Functions | Static Public Member Functions
PathJaccard Class Reference

#include <PathJaccard.h>

Inheritance diagram for PathJaccard:
[legend]
Collaboration diagram for PathJaccard:
[legend]

Public Member Functions

double measure (const RJDocument &lhs, const RJDocument &rhs) override
 

Static Public Member Functions

static double measure (const similarityRepresentation< PathJaccard >::Representation &lhs, const similarityRepresentation< PathJaccard >::Representation &rhs)
 

Detailed Description

Uses the Jaccard coefficient of two sets of all unique JSON pointers(/paths) contained within two documents to calculate their similarity.

Member Function Documentation

◆ measure() [1/2]

double PathJaccard::measure ( const RJDocument lhs,
const RJDocument rhs 
)
overridevirtual

Measures the similarity between two RJDocuments.

Parameters
lhsFirst document to compare
rhsSecond document to compare
Returns
A measure for similarity between [0,1]

Implements IJSONSimilarityMeasure.

Here is the call graph for this function:

◆ measure() [2/2]

double PathJaccard::measure ( const similarityRepresentation< PathJaccard >::Representation &  lhs,
const similarityRepresentation< PathJaccard >::Representation &  rhs 
)
static

The documentation for this class was generated from the following files: