class OETverskySim : public OEGraphSim::OESimFuncBase
This class represents OETverskySim that calculates the Tversky similarity score.
The following methods are publicly inherited from OESimFuncBase:
| operator() | CreateCopy | GetSimTypeString |
OETverskySim(float a=0.95f)
Default constructor (
,
)
OETverskySim(float a, float b)
Constructor with arbitrary
and
parameters.
float operator()(const OEGraphSim::OEFingerPrint &fpA,
const OEGraphSim::OEFingerPrint &fpB) const
Returns the Tversky similarity coefficient of the two given OEFingerPrint objects.
OEGraphSim::OESimFuncBase *CreateCopy() const
Deep copy constructor that returns a copy of the object. The memory for the returned OETverskySim object is dynamically allocated and owned by the caller.
std::string GetSimTypeString() const
Returns a string representation of the OETverskySim class.